To get around some weirdness sometimes (you never know WHAT state you're in when you're in the middle of an exception handler...), use UNIVERSAL::isa() instead of the isa() method.

This commit is contained in:
ian%hixie.ch 2004-02-25 17:50:24 +00:00
parent f973ed9b2e
commit cad9e1a0d4

View File

@ -485,7 +485,7 @@ sub handle {
$reraise = wrap($@);
if (not defined($result) or # $result is not defined if $reraise is now defined
not ref($result) or
not $result->isa('PLIF::Exception::Internal::Fallthrough')) {
not UNIVERSAL::isa($result, 'PLIF::Exception::Internal::Fallthrough')) {
last handler;
}
# else, it's the result of an "fallthrough" function call