more useful options | |
PerlMonks |
Re: Re: Re: Load all modules in directoryby ysth (Canon) |
on Dec 11, 2003 at 05:13 UTC ( [id://313978]=note: print w/replies, xml ) | Need Help?? |
The require needs a file name and the import needs a package name. So you need to figure out how to
require "/home/tboyd/lib/site_perl/5.6.1/Tools/ModuleA.pm" but import "Tools::ModuleA".
You might want to see the thread about import.pm on perl5-porters for ideas about doing this or reasons not to.
In Section
Seekers of Perl Wisdom
|
|