Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Simplifying for loop and applying multiple push function

by duff (Parson)
on Dec 14, 2005 at 22:05 UTC ( [id://516783]=note: print w/replies, xml ) Need Help??


in reply to Re: Simplifying for loop and applying multiple push function
in thread Simplifying for loop and applying multiple push function

If you were going to be sneaky about it, surely you'd write it like so:

push @{--$| ? \@one : \@two}, $_ for %hash;

P.S. Is there some unspoken mission to use --$| for everything?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found