Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I guess it's more mod_perl rather that mason question. I got a situation where I'd like ideally populate hash or array during the server start up and share it between apache processes. Please let me know if the of the book example is what I need:
thanks<Perl> my %foo = (a => 0, b => 1); for (%foo) { push @{ $Location{"/"}->{PerlAddVar} }, [ foo => $_ ]; } </Perl>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mod_perl / mason - variable shared between apache2's children
by perrin (Chancellor) on May 21, 2009 at 04:47 UTC | |
|
Re: mod_perl / mason - variable shared between apache2's children
by trwww (Priest) on May 21, 2009 at 00:52 UTC | |
by Crackers2 (Parson) on May 21, 2009 at 02:14 UTC | |
by trwww (Priest) on May 21, 2009 at 15:47 UTC |