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: Stas Bekman
Subject: Re: [WISH] A Perlish way to detect mod_perl major version (= not $ENV{MOD_PERL})
Date: 00:56 on 18 Mar 2005
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

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Re: [WISH] A Perlish way to detect mod_perl major version (= not $ENV{MOD_PERL})
Stas Bekman 00:56 on 18 Mar 2005

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