You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Stathy Touloumis <st...@edventions.com> on 2001/12/13 00:34:48 UTC

Apache->push_handlers

Hi,

I was wondering if anyone had experienced some funky behavior when 'pushing'
a content handler (PerlHandler).  The initial request makes the appropriate
content handler call but  upon subsequent requests the content handler
routine does not get called.

This is a snippet of code from a startup file that is loaded at system
startup:
my $environment = $ENV{'ENVIRONMENT'};
Apache->push_handlers( PerlHandler=>  sub {
    return "Package::Base::$environment"->handler( shift );
} );

Thanks,