Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by xdg (Monsignor)
on Dec 14, 2005 at 20:59 UTC ( [id://516763]=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

Great solution! And if anyone else was wondering, yes, these will both be properly ordered:

From keys:

The keys are returned in an apparently random order. The act +ual random order is subject to change in future versions of perl +, but it is guaranteed to be the same order as either the "val +ues" or "each" function produces (given that the hash has not bee +n modified).

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-26 07:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found