in reply to Re: Re: Apocalypse 4 on perl.com
in thread Apocalypse 4 on perl.com
Indent to taste.given ($foo) { when (1) {print "One";}; when (2) {print "Two";}; print "Didn't fit any case we know about"; }
UPDATE
I don't think that "normal code" will often see a difference. While I can dream up situations where I think it matters, in all of them you are doing evil, awful things that you probably shouldn't. (Like using a default to shortcircuit out of a function.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Apocalypse 4 on perl.com
by tye (Sage) on Jan 22, 2002 at 05:15 UTC |