XP is just a number | |
PerlMonks |
Re: Load all modules in directoryby batkins (Chaplain) |
on Dec 10, 2003 at 19:56 UTC ( [id://313839]=note: print w/replies, xml ) | Need Help?? |
As others have, suggested, require is the answer. However, in order to get the full functionality of use, you should call import on the package you just required.
Also, I'm not sure if this is intentional, but globbing those files leaves the .pm on, which may not be what you want. Try adding to your for loop before the require.
Are you sure it was a book? Are you sure it wasn't.....nothing?
In Section
Seekers of Perl Wisdom
|
|