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. }
In reply to Re: Eek! goto?
by djantzen
in thread (duplicate) Eek! goto?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |