![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re^3: require mysteryby Corion (Patriarch) |
on Sep 06, 2007 at 07:38 UTC ( [id://637340]=note: print w/replies, xml ) | Need Help?? |
No:
is exactly the same as
which fails. Your other attempt,
evaluates the string, which then looks like
which succeeds. Consider using the following code if you want a dynamic module loader:
Other alternatives which I recommend against are UNIVERSAL::require and Module::Load because they both hide fatal errors from you, for example compilation errors in the required modules. Maybe you might want Module::Pluggable for a plugin system.
In Section
Seekers of Perl Wisdom
|
|