in reply to Re: fall through switch/case in perl
in thread fall through switch/case in perl
- The OP isn't asking about Duff's device.
- Your code isn't Duff's device either.
- Your code is inefficient (it's always doing 10 comparisons).
- Your code has a pointless for loop.