> -----Original Message----- > From: Perrin Harkins [mailto:[EMAIL PROTECTED]] > > > ALWAYS reinitialize $Your::Singleton::ETERNAL on each query! > > mod_perl will *NOT* do it for you. > > If you want a per-request global, use $r->pnotes() instead of > a standard > perl global. Then mod_perl *WILL* do it for you.
Actually I was wondering about writing an Apache::Singleton class, that works the same as Class::Singleton, but clears the singleton out on each request (by using pnotes). Would anyone be interested in that? Matt. _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service.