Perhaps autoload can help you avoid having to use them all always?. If not, how about this:
opendir (DIR,"/path/to/dir") or die "Can't readdir: $!"; foreach my $module (grep /\.pm$/, readdir(DIR)) { require "/path/to/dir/$module"; $module =~ s/\.pm$//; import $module; } closedir DIR;
I haven't tested this, so you might have to mess with the syntax to require and import.
-- Dan
In reply to Re: use (all)
by zigdon
in thread use (all)
by nop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |