in reply to (duplicate) Eek! goto?
This is the construct I generally use, although TheDamian's new switch module is probably better overall.
SWITCH: for ($num) { /11/ && do { $c += $k[10] << 24; last SWITCH; }; /10/ && do { $c += $k[9] << 16; last SWITCH; }; # ...and so forth. # Default action. }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Eek! goto?
by BrowserUk (Patriarch) on Feb 12, 2003 at 00:10 UTC | |
by djantzen (Priest) on Feb 12, 2003 at 00:22 UTC |