good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: store module names in an arrayby FloydATC (Deacon) |
on Oct 27, 2009 at 05:55 UTC ( [id://803383]=note: print w/replies, xml ) | Need Help?? |
The trick is that 'use' loads the module at compile time, 'require' does so at runtime. Simply put, wrapping your loop in a BEGIN block would execute it at compile time, and 'use' should work as expected.
--
Time flies when you don't know what you're doing
In Section
Seekers of Perl Wisdom
|
|