On Sat, 2005-08-20 at 15:09 -0400, Christopher H. Laco wrote: > I want all subs in the module to share the stagte of one variable...in > my case @context. > > I also want any changes to @context to only effect the current > user/request under mod_perl. > > What's the best approach?
Either pass the data around (preferably in an object of some kind) and make sure to clean up the object at the end of the request, or keep the state in $r->pnotes() where it will be cleared at the end of the request. - Perrin