Re: global variable

André Warnier <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
[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 is because each child has its own separate perl interpreter, and 
each has its own separate memory and set of variables.

That is the only answer that is valid in all cases, under all platforms 
and all variations of Apache.
But if you give some more details about the platform, the Apache, and 
what you are trying to do, someone may be able to suggest an alternative.
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.