Re: Clean way of transfering Objects between childinit and requesthandlers ?

2000-09-18 Thread Greg Cope
Matt Sergeant wrote: > > On Sun, 17 Sep 2000, Chris Winters wrote: > > > Hi Greg, > > > > Check out Class::Singleton for this purpose. Works great for me. > > . > One thing C::Singleton misses is a clear_instance method though, which is > pretty much necessary for mod_perl work (I'm surp

Re: Clean way of transfering Objects between childinit and requesthandlers ?

2000-09-17 Thread Matt Sergeant
On Sun, 17 Sep 2000, Chris Winters wrote: > Hi Greg, > > Check out Class::Singleton for this purpose. Works great for me. > > Basically, the first time you create the object, do: > > my $obj = $object_class->instance( ... ); > > Every successive time you want the object, just call: > > my