Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: keys and values order on a hash

by ikegami (Patriarch)
on Jul 11, 2011 at 16:42 UTC ( [id://913726]=note: print w/replies, xml ) Need Help??


in reply to Re: keys and values order on a hash
in thread keys and values order on a hash

given that the hash has not been modified

Specifically, changing the hash by adding or removing a key is what voids the guarantee, and so does assigning to keys. Changing a value does not affect the order.

Adding or removing a key and then undoing the action still counts as a change. That means you can get different orders from two hashes with identical keys.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found