Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Mini-Tutorial: Working with Odd/Even Elements

by eyepopslikeamosquito (Archbishop)
on Jul 10, 2009 at 07:40 UTC ( [id://778841]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://778841]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-20 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found