perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: issues with figuring out which mp version is running
Date Mon, 23 Jan 2006 20:40:32 GMT


Frank Wiles wrote:
> On Mon, 23 Jan 2006 11:01:07 -0800
> Stas Bekman <stas@stason.org> wrote:
> 
> 
>>Stas Bekman wrote:
>>[...]
>>
>>>In which case checking $ENV{MOD_PERL_API_VERSION} should do the
>>>trick.
>>
>>Just remember that mod_perl1 doesn't have this env var. So it should 
>>probably go like:
>>
>>  if exists $ENV{MOD_PERL_API_VERSION} and ...
> 
> 
>   But these aren't populated if you use SetHandler modperl correct? 

no.  these particular %ENV values are always populated, as they're mod_perl
specific.  the modperl handler just toggles cgi vars and other things coming
from $r->subprocess_env.

--Geoff

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message