No such thing as a small change | |
PerlMonks |
Re^2: Testing for a module's presenceby sandfly (Beadle) |
on Feb 11, 2005 at 23:09 UTC ( [id://430343]=note: print w/replies, xml ) | Need Help?? |
"require" also better because it doesn't call import(). The module code still gets executed though. Typically, "require"d modules just create subs in their own package, but a badly-behaved module could in principle mess up any namespace.
If you want to "use" a module at runtime, you can eval a quoted string:
In Section
Seekers of Perl Wisdom
|
|