On 9/23/07, jk jk <[EMAIL PROTECTED]> wrote: > I've been trying to use Apache::Singleton::Request under the assumption that > you're right about Class::Singleton being the crux of the issue. > Unfortunately, I can't get it working under Apache2. Is there a different > module for mp2/apache2 ?
It should be easy to port if you want to. I wonder why you're trying to use a singleton at all though. It seems like either you should create a new object every time, or just use class methods if you don't need an object. If this was just to get access to the request object, you don't need it. You can always get the request object from anywhere using Apache2::RequestUtil. By the way, a quick look at Class::Singleton confirms what Philippe said: the instance() method just returns an existing instance after the first call and ignores all parameters. It's not a mod_perl incomaptibilty; it's the intended behavior of the module. - Perrin