Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
First timer running mod_perl. If I put code in a BEGIN block will it get executed each time a request is made (I'm understanding it to be no)? I have some "require"d pms that I want to include but there is no need to execute the code each time a request is made (same declarations, etc..,). How can I include a file of code in a BEGIN and have it execute only on program initialization? Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: mod_perl and imports
by Eily (Monsignor) on Sep 26, 2013 at 22:22 UTC | |
Re: mod_perl and imports
by Marshall (Canon) on Sep 27, 2013 at 04:43 UTC | |
by Eily (Monsignor) on Sep 27, 2013 at 11:44 UTC | |
by Marshall (Canon) on Sep 30, 2013 at 08:03 UTC |
Back to
Seekers of Perl Wisdom