|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: importing functions with "PerlModule" Apache directiveby Anonymous Monk |
| on May 09, 2012 at 10:50 UTC ( #969594=note: print w/ replies, xml ) | Need Help?? |
|
If you are trying to move out the use statements from the code into the Apache config, I don't think it makes much sense. A goal of mod_perl is to load the required modules at Apache startup, which will improve performance and memory use. The subsequent use at the actual Perl script costs very little -- it only imports the module's functions into the script's namespace.
Besides, if you want to erase those use statements from the actual scripts, it will be a maintenance nightmare should any of the scripts ever have to be moved.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||