in reply to Re: Mini-Tutorial: Working with Odd/Even Elements
in thread Mini-Tutorial: Working with Odd/Even Elements

my $t = 0; grep { $t^=1 } LIST
... That said, I'm totally using it the next time I play golf.
No. In golf, the --$| magical flip-flop is shorter. For example:
grep--$|,LIST


Comment on Re^2: Mini-Tutorial: Working with Odd/Even Elements
Select or Download Code