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