in reply to Succinct switch statement
Altho the given-when thing is cool, it would be cooler if the given() could be left out.
It can. given just sets $_, and the outer while-loop does that already, so it's really redundant.
And, by the way, is there an even shorter way to do print "\n"; ?
say.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Succinct switch statement
by ikegami (Patriarch) on Oct 23, 2009 at 21:04 UTC | |
by moritz (Cardinal) on Oct 24, 2009 at 13:58 UTC | |
|
Re^2: Succinct switch statement
by Anonymous Monk on Oct 23, 2009 at 21:18 UTC | |
by toolic (Bishop) on Oct 23, 2009 at 21:34 UTC | |
by ikegami (Patriarch) on Oct 23, 2009 at 22:07 UTC | |
by markkawika (Monk) on Oct 23, 2009 at 21:49 UTC | |
by toolic (Bishop) on Oct 23, 2009 at 23:21 UTC |