Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by eyepopslikeamosquito (Canon)
on Jul 10, 2009 at 07:40 UTC ( #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


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2014-07-29 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (226 votes), past polls