Re: global variable

Perrin Harkins <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Wed, Feb 3, 2010 at 2:20 AM, André Warnier <[email protected]> wrote:
> [email protected] wrote:
>>
>> Hello,
>>
>> Is there a method to setup a global variable for all modperl child
>> processes?
>> Also this variable will be updated sometime, when it get updated, all
>> processes will know it.
>>
> As a general answer, no.

That's right.  Apache uses multiple processes and there's no built-in
way to share perl variables between them.  If you want to share data
and don't want to use a database, look at tools like CHI on CPAN.

- Perrin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.