Perl Monk, Perl Meditation | |
PerlMonks |
mod_perl reloading handler on each callby BigLug (Chaplain) |
on Jan 10, 2005 at 02:21 UTC ( [id://420790]=perlquestion: print w/replies, xml ) | Need Help?? |
BigLug has asked for the wisdom of the Perl Monks concerning the following question:
I have just started getting into mod_perl (v2) and I need some help. I'm not getting the expected behaviour from the script that follows. My module is loading and executing as I'd expect, however it's reloading upon each call from the browser. AFAIK, mod_perl is supposed to load the module once when Apache starts up, and then it should call the handler() once for each request from a browser. This was the impression that I got from what I've been able to read. However I could be wrong. Am I? If I'm right, please take a look at my code and let me know where I went wrong. Let me know why it reloads my script every time I call the directory in which it sits.
My .htaccess says:
P.S. Have I done anything that is against the mod_perl recommended way to do it?
My script is as follows. The warn() line is there so I can see from the logs (tail -f) when the script it reloaded:
Cheers! Rick If this is a root node: Before responding, please ensure your clue bit is set. If this is a reply: This is a discussion group, not a helpdesk ... If the discussion happens to answer a question you've asked, that's incidental.
Back to
Seekers of Perl Wisdom
|
|