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.
In reply to Re: Succinct switch statement
by moritz
in thread Succinct switch statement
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |