Sam Tregar wrote:
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
Yes,
I think we usually do:
$MP2 = (exists $ENV{MOD_PERL_API_VERSION} &&
$ENV{MOD_PERL_API_VERSION} == 2) ? 1 : 0;
but either will work.
good catch.
--
END
------------------------------------------------------------
What doesn't kill us can only make us stronger.
Nothing is impossible.
Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
http://www.liquidityservicesinc.com
http://www.liquidation.com
http://www.uksurplus.com
http://www.govliquidation.com
http://www.gowholesale.com