Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: mod_perl / mason - variable shared between apache2's children

by perrin (Chancellor)
on May 21, 2009 at 04:47 UTC ( #765378=note: print w/replies, xml ) Need Help??


in reply to mod_perl / mason - variable shared between apache2's children

All you want to do is fill a hash and then read from it in child processes? Just use a global. Fill it in your httpd.conf in a <Perl> section or in your startup.pl file.

%My::Conf::Hash = ( foo => 1 );

You can read that from any apache child process, but you can't modify it after startup. If you want shared read/write data, it becomes a trickier question.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2019-12-08 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?