Stas Bekman <[EMAIL PROTECTED]> writes:
[...]
> >>I'm also going to add a wrapper to replace the crafty
> >>
> >> if (ref $@ eq 'Apache::Error' && $@ == APR::TIMEUP) { ... }
> >>
> >>with:
> >>
> >> if (APR::Error::foo($@, APR::TIMEUP)) { ... }
OTOH, why not just write
if ($@ == APR::TIMEUP) { ... }
? If you're worried about numerification warnings
(assuming $@ isn't a number or an APR::Error object),
making APR::TIMEUP an APR::Error object would cause
perl to call the overloaded "==".
--
Joe Schaefer
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]