Re: [WISH] A Perlish way to detect mod_perl major version (= not $ENV{MOD_PERL})

[prev] [thread] [next] [Date index for 2005/03/18]

From: Geoffrey Young
Subject: Re: [WISH] A Perlish way to detect mod_perl major version (= not $ENV{MOD_PERL})
Date: 01:04 on 18 Mar 2005

Stas Bekman wrote:
> John Siracusa wrote:
> 
>> Looking at $ENV{'MOD_PERL'} is mostly fine with me, but it does bother me
>> that I have to strip out the version using a regex and then compare it to
>> 1.99.  (What if the format of that string changes someday?)
>> $ENV{'MOD_PERL_API_VERSION'} will help there, I think.
> 
> 
> As of this moment the official way is well documented here:
> http://perl.apache.org/docs/2.0/user/porting/porting.html#Making_Code_Conditional_on_Running_mod_perl_Version

well, I guess you and I were typing at the same time - I just committed
$ENV{MOD_PERL_API_VERSION} to trunk :)

--Geoff

Re: [WISH] A Perlish way to detect mod_perl major version (= not $ENV{MOD_PERL})
Geoffrey Young 01:04 on 18 Mar 2005

Generated at 15:10 on 27 Mar 2005 by mariachi v0.52