Re: Best way to distinguish between mod_perl 1 and 2

2004-09-21 Thread Stas Bekman
Tom Schindl wrote: Hi, !please always reply to the mailing list so the thread doesn't get broken! well mp uses this value internally and many CPAN-Modules do so either. Versions mp1 = VERSION < 1.99 mp2 = VERSION >= 1.99 The real syntax would be: ->8- use mod_perl;

Re: Best way to distinguish between mod_perl 1 and 2

2004-09-20 Thread Glenn Strauss
On Mon, Sep 20, 2004 at 10:53:09PM +0200, Tom Schindl wrote: > Hi, > > !please always reply to the mailing list so the thread doesn't get broken! > > well mp uses this value internally and many CPAN-Modules do so either. > Versions > > mp1 = VERSION < 1.99 > mp2 = VERSION >= 1.99 > > The real

Re: Best way to distinguish between mod_perl 1 and 2

2004-09-20 Thread Tom Schindl
Hi, !please always reply to the mailing list so the thread doesn't get broken! well mp uses this value internally and many CPAN-Modules do so either. Versions mp1 = VERSION < 1.99 mp2 = VERSION >= 1.99 The real syntax would be: ->8- use mod_perl; ## exists in mp1 a

Re: Best way to distinguish between mod_perl 1 and 2

2004-09-20 Thread Tom Schindl
Are you looking for this: -->8-- use constant MP2 => ($mod_perl::VERSION >= 1.99_12); -->8-- Tom John Siracusa wrote: I'm looking for the best, most reliable way to determine if I'm running under mod_perl 1 or 2, or not under mod_perl at all. I suppo