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:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Reply via email to