if ($x == 1) { # do something } elsif ($x == 2) { # do something else } else { confess "should't be here!" }
The idea is that I'm assuming that the subroutine got called with the right $x, but I leave that exception just in case.
In reply to Re: Useless/Interesting Error Messages
by itub
in thread Useless/Interesting Error Messages
by monkey_boy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |