|
|
| The stupid question is the question not asked | |
| PerlMonks |
loading a module only if you need itby skazat (Hermit) |
| on Oct 09, 2000 at 20:34 UTC ( #35940=perlquestion: print w/ replies, xml ) | Need Help?? |
|
skazat has asked for the
wisdom of the Perl Monks concerning the following question:
here's a q:
I have a hefty cgi script, its about 125k, with about 5 modules attached to it, so load time is becoming somewhat an issue. the thing is, i don't always need some modules, would this work?
in other words, would it work to only call modules using `use` when i need them in a specific function? or would that not work. and would it really help load time, or would all the modules get loaded anyhoo at load time?
-justin simoni
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||