perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <>
Subject Re: dependency in Apache2::Status
Date Fri, 11 Mar 2005 20:46:18 GMT
Geoffrey Young <> writes:


> that would mean re-parsing "mod_perl/1.29_01-dev" and
> "mod_perl/1.999.22-dev" and the like within, right?  I guess
> so, but it feels like a lot of extra code in  but I guess we
> don't really have much choice.

Hmm, maybe we could have mp2 additionally expose $ENV{MOD_PERL2}?
Then the logic becomes

     if (exists $ENV{MOD_PERL2}) {
        # running mp2

     elsif exists ($ENV{MOD_PERL}) {
        # not mp2; must be mp1 then

     else {
        # normal mode


or whatever.  The point I'm trying to make is that the runtime 
is something we control, so marking the running mod_perl API 
via some runtime variable should be a workable approach.

Joe Schaefer

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message