| 1 | # | ||
| 2 | # Data::Shark.pm | ||
| 3 | # | ||
| 4 | # Copyright (C) 2007 William Walz. All Rights Reserved | ||
| 5 | # This program is free software; you can redistribute it and/or | ||
| 6 | # modify it under the same terms as Perl itself. | ||
| 7 | # | ||
| 8 | # | ||
| 9 | |||
| 10 | package Data::Shark; | ||
| 11 | |||
| 12 | use version; our $VERSION = qv('2.1'); | ||
| 13 | |||
| 14 | use strict; | ||
| 15 | |||
| 16 | sub import { | ||
| 17 | my $class = shift; | ||
| 18 | $class->VERSION (@_); | ||
| 19 | |||
| 20 | my @l = @_ ? @_ : qw(DBI FIO DIO Util); | ||
| 21 | |||
| 22 | eval join("", map { "require Data::Shark::" . (/(\w+)/)[0] . ";\n" } @l) | ||
| 23 | or croak $@; | ||
| 24 | } | ||
| 25 | |||
| 26 | 1; | ||
| 27 | |||
| 28 | __END__ |