go ahead... be a heretic | |
PerlMonks |
Re: disabling unnecessary perl modulesby InfiniteSilence (Curate) |
on May 29, 2014 at 22:24 UTC ( [id://1087888]=note: print w/replies, xml ) | Need Help?? |
Hey, in the future can you not put an entire script in Perlmonks? Wait until someone asks you for a specific piece of code rather than dump the whole thing. The answer to your question is going to be rather messy:
Produces (in short):
So, for a script that does nothing interesting and only uses two modules Perl actually checks for the presence of 161 modules. Looking at %INC only shows 37 elements for the same script, so I'm inclined to think that strace is giving me the bigger picture. Figuring out which modules you can live without should be a chore. I think you can save yourself the headache and just put all of the modules a script needs in a PAR archive and reference that. Celebrate Intellectual Diversity
In Section
Seekers of Perl Wisdom
|
|