in reply to Re^5: fall through switch/case in perl
in thread fall through switch/case in perl
for ( $var ) { $_ >= 10 and print "a"; $_ >= 9 and print "b"; $_ >= 8 and print "c"; $_ >= 7 and print "d"; $_ >= 6 and print "e"; $_ >= 5 and print "f"; $_ >= 4 and print "g"; $_ >= 3 and print "h"; $_ >= 2 and print "i"; $_ >= 1 and print "j"; }
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: fall through switch/case in perl
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 17:24 UTC | |
|
Re^7: fall through switch/case in perl
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 |