in reply to Re: fall through switch/case in perl
in thread fall through switch/case in perl
In practice, however, if your algorithm needs a switch equivalent, you're better off re-thinking your algorithm.
Eh? And why is that? That's a pretty bold statement, considering many languages do have a 'switch', perl6 will have a switch, there's Switch.pm, both the manual and the FAQ discuss it (without dismissing it as choicing a bad algorithm), and it has been on the wishlist since the very first release of Perl in 1987.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: fall through switch/case in perl
by radiantmatrix (Parson) on Sep 07, 2004 at 15:40 UTC | |
by Anonymous Monk on Sep 07, 2004 at 15:59 UTC | |
by radiantmatrix (Parson) on Sep 07, 2004 at 18:21 UTC | |
by demerphq (Chancellor) on Sep 14, 2004 at 12:09 UTC | |
by Anonymous Monk on Sep 07, 2004 at 23:11 UTC | |
by radiantmatrix (Parson) on Sep 08, 2004 at 13:25 UTC |