in reply to Useless/Interesting Error Messages
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Useless/Interesting Error Messages
by wazoox (Prior) on Mar 07, 2005 at 16:57 UTC |