Jamie Krasnoo wrote:

On Thu, 2003-07-24 at 02:15, Stas Bekman wrote:


Jamie Krasnoo wrote:

Will placing Apache::RequestRec & Apache::RequestIO & APR::Table in
startup.pl to load them up for multiple handlers have any bad side
effects? I noticed that when I load them via startup.pl the handlers
that use them don't complain that they don't have the use statements
within the module code and still work as normal.

While this works for you, it's a bad practice. Why? Because other people using your code may not have these modules loaded from startup.pl.




Won't loading them for every handler put an instance of it in
memory over and over again though? Or will Perl realize that
its already loaded and not load it again? How would this behave
in MPM threadpool?

perldoc -f require


It gets loaded only once. Why should be any difference with threadpool. Application-wise it's all transparent.



__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Reply via email to