Which version of Exception::Class did you read? The caught() method in E::C 1.32 includes the type check:
return unless blessed($e) && $e->isa( $_[1] );I trust the Perl 5 core to get isa() right for a type check (and I trust that everyone following this conversation can trivially distinguish between an exact string match and a regular expression match in terms of fragility).
In reply to Re^8: eval to replace die?
by chromatic
in thread eval to replace die?
by hsmyers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |