perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Foertsch <torsten.foert...@gmx.net>
Subject Re: SetHandlers question, Phase II
Date Wed, 15 Oct 2008 08:56:39 GMT
On Wed 15 Oct 2008, André Warnier wrote:
> > I think you're wanting:
> >
> >      $r->set_handlers(PerlFixupHandler => sub
> > {$_[0]->handler('modperl')});
>
> Yes.  That works.

Better to return something sane from the handler:

sub {$_[0]->handler('modperl');0}  # 0==Apache2::Const::OK

Also consider push_handlers instead of set_handlers. In case other 
modules already have set a fixup handler.

Torsten

--
Need professional mod_perl support?
Just hire me: torsten.foertsch@gmx.net

Mime
View raw message