Geoffrey Young <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]