[Catalyst] Detecting when running under mod_perl

Bill Moseley moseley at hank.org
Mon Jan 28 19:16:00 GMT 2013


Pre-Plack I had used this to determine if running under Apache/mod_perl.

if ( $c->engine->can( 'apache' ) ) { ... }


Is this the best, future-proof approach now?

During setup check $ENV{MOD_PERL}

and per request check if $c->req->env->{'psgi.input'}
isa 'Apache2::RequestRec'?



-- =

Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20130128/010e7=
20f/attachment.html


More information about the Catalyst mailing list