http://qs321.pair.com?node_id=778841


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