Welcome to the Monastery | |
PerlMonks |
Script Startup Timeby gnu@perl (Pilgrim) |
on Sep 17, 2003 at 17:39 UTC ( [id://292191]=perlquestion: print w/replies, xml ) | Need Help?? |
gnu@perl has asked for the wisdom of the Perl Monks concerning the following question:
I have a script (relevent code below) that evaluates some command line options. One of these options prints out the version and exits. The thing I don't like is that it takes a few seconds to print out the version. Not a big deal, but a little irritating.
I know the reason is all of the modules being 'use'ed. I know I could explicitely import the important parts of the modules and that may help, but I'm not sure. If I comment out all the 'use' lines except for 'use Getopt::Long' the './program.pl --version' comes back immediately. This is the type of performance I would like when the whole thing is done. Does anyone have any ideas on how I could speed this up? TIA, gnu. code below
Back to
Seekers of Perl Wisdom
|
|