Re: [mp1] Method handler that eventually seems to "forget" it's a method handler

[prev] [thread] [next] [Date index for 2005/02/02]

From: Geoffrey Young
Subject: Re: [mp1] Method handler that eventually seems to "forget" it's a method handler
Date: 15:40 on 02 Feb 2005

>>I'll give that a go and see.  Is the following also kosher, then?
>>
>>	$r->push_handlers(
>>		PerlCleanupHandler => MyApp::MyInstall::Cleaner->handler
>>	);
> 
> 
> sorry, no - you can't currently push a method handler like that.  see the
> 
>   * method handler cached-CVs
> 
> entry in the STATUS file that ships with mod_perl-1.0 for some relevant links.

and for those that don't go and read the links, while the above form isn't
valid you should be able to use this instead.

        $r->push_handlers(
		PerlCleanupHandler => 'MyApp::MyInstall::Cleaner->handler'
	);

(note the quotes)

--Geoff

Re: [mp1] Method handler that eventually seems to "forget" it's a method handler
Geoffrey Young 15:40 on 02 Feb 2005

Generated at 12:39 on 05 Feb 2005 by mariachi v0.52