perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: issues with figuring out which mp version is running
Date Thu, 26 Jan 2006 04:54:22 GMT
Philip M. Gollucci wrote:
> 
>>   use constant MP2 => eval { require mod_perl; $mod_perl::VERSION > 
>> 1.99 };
>>
>> so MP2 can never be true, since it should be mod_perl2 not mod_perl. 
>> Since I don't have mp1 installed (which I guess happens to work 
>> instead) the module doesn't work.
> 
> 
> I've  been out of the game for a while, but this is not true.
> In mod_perl2.pm this is specifically set to ease the porting effort.

It has nothing to do with mod_perl2.pm, the above snippet loads 
mod_perl.pm. So if you haven't loaded mod_perl2.pm already the above code 
will never be true.

-- 
_____________________________________________________________
Stas Bekman mailto:stas@stason.org  http://stason.org/
MailChannels: Assured Messaging(TM) http://mailchannels.com/
The "Practical mod_perl" book       http://modperlbook.org/
http://perl.apache.org/ http://perl.org/ http://logilune.com/


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


Mime
View raw message