perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <>
Subject Re: Server Level Global Variable
Date Tue, 13 Apr 2010 20:12:28 GMT
On Tue, Apr 13, 2010 at 2:23 PM, Shibi NS <> wrote:
> I have requirement to maintain variables at server level say a
> counter(something like server restart count) variable and time date, so if
> particular event(say die on request handler) this counter increments by one
> and time date variable updated to current system date and time.  Is there is
> any way to do it  so all request process get access to this variable can be
> updated by  Apache reques

No.  You can do it by using a database, a file, or shared memory with
one of the modules on CPAN.  Unless you have extreme performance
needs, I'd suggest just using a database, since you probably have one

- Perrin

View raw message