![]() |
|
"be consistent" | |
PerlMonks |
Re: Dynamically load all modules from a directoryby ELISHEVA (Prior) |
on Oct 01, 2009 at 15:27 UTC ( #798674=note: print w/replies, xml ) | Need Help?? |
use needs a bare word so it isn't suitable for the kind of dynamic loading you want to do. require can be used instead but you must use the file name as is (don't strip the final .pm) like this:
There is a nice example in the perl documentation for require as well. Best, beth
In Section
Seekers of Perl Wisdom
|
|