Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Hash ordering

by haukex (Archbishop)
on Apr 14, 2020 at 10:29 UTC ( [id://11115514]=note: print w/replies, xml ) Need Help??


in reply to Re: Hash ordering
in thread Hash ordering

Perl 5.8.1 introduced changes to ensure that a given hash's keys would come up in a different order on each run of the program

In addition, in 5.18 further changes were made. From Hash overhaul:

By default, two distinct hash variables with identical keys and values may now provide their contents in a different order where it was previously identical. ... the order which keys/values will be returned from functions like keys(), values(), and each() will differ from run to run. ... Further, every hash has its own iteration order, which should make it much more difficult to determine what the current hash seed is.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-29 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found