Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: importing functions with "PerlModule" Apache directive

by Anonymous Monk
on May 09, 2012 at 10:50 UTC ( #969594=note: print w/ replies, xml ) Need Help??


in reply to importing functions with "PerlModule" Apache directive

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.


Comment on Re: importing functions with "PerlModule" Apache directive
Select or Download Code
Re^2: importing functions with "PerlModule" Apache directive
by acanfora (Novice) on May 09, 2012 at 12:48 UTC
    I agree about the maintenance issue. In this case the application being developed is strictly tied up with the system and its own peculiar configuration.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://969594]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2013-06-20 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many continents have you visited?









    Results (678 votes), past polls