No such thing as a small change | |
PerlMonks |
Re: Load only if neededby johannz (Hermit) |
on May 29, 2001 at 22:28 UTC ( [id://84021]=note: print w/replies, xml ) | Need Help?? |
Just for fun, 'RE: Factory Pattern for Class Heirarchy', a node I wrote back in October did loading of modules at runtime. It is not as efficient as autouse, but it allowed me to learn how AUTOLOAD and the UNIVERSAL package worked. But merlyn is correct in saying to use 'autouse'; it's more correct(read Safer) than my experiment.
In Section
Seekers of Perl Wisdom
|
|