http://qs321.pair.com?node_id=313839


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.
BEGIN { @mods = glob("/home/cuberat/mods/*"); for (@mods) { require $_; $_->import; } }
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
s{.pm}{};
to your for loop before the require.
Are you sure it was a book? Are you sure it wasn't.....nothing?