Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Purdy (2383)

Purdy
  jasonNO@SPAMpurdy.info
http://purdy.info/
AOL IM: EmeraldWarp (Add Buddy, Send Message)
Yahoo! ID: jpurdy2 (Add User, Send Message)

Bleh - not feeling creative right now. You can check me out on PerlMonks [perlmonks.org].

Journal of Purdy (2383)

Tuesday December 04, 2001
04:40 PM

Arg - my brain hurts

[ #1493 ]
For the life of me, I cannot get around my current mod_perl problem - nothing I want to bother you with, but if you want to see the code so far, check it out.

I would like the BEGIN block to set up global variables for the life of the program (which I thought loaded up and ran in perpetuity [until the server stopped/restarted]). However, it seems the BEGIN block is run for each child process of the Apache server. And also if the child is recycled.

I don't think I'm explaining it properly... bottom-line: I would like the program to only setup the variables once - it would save some time in re-creating those global variables.

After my head stops hurting, I will check out PerlFreshRestart (or something like that) and also Apache::Registry (can i put global variables there?).

Jason

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.