more useful options | |
PerlMonks |
Re^9: fall through switch/case in perlby Aristotle (Chancellor) |
on Sep 07, 2004 at 03:25 UTC ( [id://388919]=note: print w/replies, xml ) | Need Help?? |
I don't mean the extra checks. I mean it doesn't preserve the semantics. Imagine if the OP's code didn't have the conditions in a strictly monotonic increasing or decreasing sequence, but in some completely random order. You couldn't emulate that simply by fiddling the conditions a little — you'd have to build a construct that's actually equivalent. Makeshifts last the longest.
In Section
Seekers of Perl Wisdom
|
|