in reply to Regarding variables that

You'd like to share information between different processes without using a database? Check out the IPC::* modules on CPAN. They'll let you access and store information in shared memory.

IPC::ShareLite in particular is great - it's tested and stable in a mod_perl environment. I've used it quite regularly, with mod_perl as part of another module, and I've had no problems with it.

Replies are listed 'Best First'.
Re: (dkubb) Re: (2) Persistent Variables
by mr.nick (Chaplain) on Mar 13, 2001 at 18:58 UTC
    Not between process instances, but between multiple instances of the same class in one process. And I figured it out. It was as simple as:
    sub init { ## initialize stuff $cache=new GNS::Cache; } sub uninit { undef $cache; }
    then from the main program, I can just do a
    GNS::Node::init(); my $x=new GNS::Node; my $y=new GNS::Node; ## blah blah blah ## do some stuff GNS::Node::uninit();