Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 musing on the Monastery: (10)
As of 2014-12-21 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (103 votes), past polls