On Sun, 21 Aug 2005, Philip M. Gollucci wrote:
> I wasn't doing it for speed, more of consitency's sake with
> perl.apache.org docs and other modules like Apache::DBI, Apache::DB
> (+friends), and etc. I have however changed it to a user var ($MP2)
> per you request.
Cool, thanks. One question (which you may perfectly reasonably ask me
to check for myself): won't this cause a warning when
MOD_PERL_API_VERSION is undefined?
$MP2 = $ENV{MOD_PERL_API_VERSION} == 2 ? 1 : 0;
Perhaps this would be better:
$MP2 = (($ENV{MOD_PERL_API_VERSION} || 0) == 2);
-sam