in reply to Re^3: fall through switch/case in perl
in thread fall through switch/case in perl
The comment that your code is wrong and does not fall through is accurate. I did run the code, not that it necessary. Set $var to 10 it prints only 'a' and does not fall through the b c d cases as with a C fall through.
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: fall through switch/case in perl
by Aristotle (Chancellor) on Sep 07, 2004 at 00:46 UTC | |
by tachyon (Chancellor) on Sep 07, 2004 at 00:49 UTC | |
by Rhys (Pilgrim) on Sep 07, 2004 at 11:47 UTC | |
by tachyon (Chancellor) on Sep 07, 2004 at 11:54 UTC | |
by Anonymous Monk on Sep 07, 2004 at 12:06 UTC | |
| |
by Aristotle (Chancellor) on Sep 07, 2004 at 01:04 UTC | |
by tachyon (Chancellor) on Sep 07, 2004 at 01:33 UTC | |
by Aristotle (Chancellor) on Sep 07, 2004 at 03:25 UTC |