Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Hash order randomization is coming, are you ready?

by chrestomanci (Priest)
on Nov 29, 2012 at 12:53 UTC ( #1006244=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $hashRef = someFuncCall();
    
    ...
    my $keys2 = join(' ', keys %$hashRef);
    
    print "Key order is not stable" if $keys1 ne $keys2;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006244]
help
Chatterbox?
[thepkd]: Anyways it works with $aohoaoh[0]->{'foo '}[0]->{'bar'}
[GotToBTru]: "I did it my $way"
[JohnCub]: I hope $way isn't a hashref. ;)
[GotToBTru]: many times i've been told I made a real hash of thiings
[GotToBTru]: so .. perhaps it should b e
[thepkd]: Just wondering why $aohoaoh[0]->{'foo '}[0]->{'bar'} would be difficult to read and understand?

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2016-12-06 13:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (105 votes). Check out past polls.