in reply to Load all modules in directory
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 addingBEGIN { @mods = glob("/home/cuberat/mods/*"); for (@mods) { require $_; $_->import; } }
to your for loop before the require.s{.pm}{};
Are you sure it was a book? Are you sure it wasn't.....nothing?
In Section
Seekers of Perl Wisdom