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
mose...@hank.org
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to