Perl Monk, Perl Meditation | |
PerlMonks |
Re: Runtime module use and sub definitionsby CukiMnstr (Deacon) |
on Apr 03, 2002 at 21:32 UTC ( [id://156454]=note: print w/replies, xml ) | Need Help?? |
you could also use an init sub, where you require the modules you need, and set some variables to the different subs...
note: I have not tested this code, and I haven't done any cross-platform scripting that requires something like this, I just remembered seeing this technique in Perl For System Administration by David N. Blank-Edelman (ORA).
hope it helps,
In Section
Seekers of Perl Wisdom
|
|