The stupid question is the question not asked | |
PerlMonks |
Re^3: slow startup for some common modules? (autodie, Pod::Usage, Getopt::Long))by NERDVANA (Deacon) |
on Dec 31, 2022 at 07:34 UTC ( [id://11149205]=note: print w/replies, xml ) | Need Help?? |
I use this recipe in most scripts:
I don't mind paying for Getopt::Long because I like its features, but there's no reason to load Pod::Usage unless the user screws up the commandline. On that note, someone ought to contribute a patch to Pod::Usage that avoids loading anything until it gets called. Then I could skip that bit of ugly boilerplate in my code.
In Section
Seekers of Perl Wisdom
|
|