That's actually a good example of why prototypes are *bad*. It looks so much like normal Perl code, one might be tempted to return from the catch block.
sub { try { ... } catch Exception with { return 0; }; return 1; }
However, a return in catch block only exits the catch block! The above function would always return 1.
In reply to Re^2: subroutine prototypes still bad?
by ikegami
in thread subroutine prototypes still bad?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |