perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: CGI.pm dependency in Apache2::Status
Date Fri, 11 Mar 2005 20:46:18 GMT
Geoffrey Young <geoff@modperlcookbook.org> writes:

[...]

> that would mean re-parsing "mod_perl/1.29_01-dev" and
> "mod_perl/1.999.22-dev" and the like within CGI.pm, right?  I guess
> so, but it feels like a lot of extra code in CGI.pm.  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: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message