Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^8: fall through switch/case in perlby tachyon (Chancellor) |
on Sep 07, 2004 at 01:33 UTC ( [id://388904]=note: print w/replies, xml ) | Need Help?? |
As you say, it is not equivalent. To do that you need some extra checks at the top of the 'loop' ie
It is almost certainly a silly way to do it in Perl anyway. It is even a rather suboptimal way to do it in C.....
cheers tachyon
In Section
Seekers of Perl Wisdom
|
|