note
eyepopslikeamosquito
<P>
<blockquote>
<CODE>
my $t = 0;
grep { $t^=1 } LIST
</CODE>
<I>
... That said, I'm totally using it the next time I play golf.
</I>
</blockquote>
No. In golf, the --$|
<a href="http://www.nntp.perl.org/group/perl.fwp/2002/01/msg1367.html">magical flip-flop</a> is shorter. For example:
<CODE>
grep--$|,LIST
</CODE>
</P>
778636
778654