Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: I don't understand why keys %hash does this ...

by FoxtrotUniform (Prior)
on Oct 05, 2004 at 06:04 UTC ( [id://396489]=note: print w/replies, xml ) Need Help??


in reply to I don't understand why keys %hash does this ...

Hashes are not sorted. They're designed for direct data lookup, not ordering. If order is important to you, use an array (or sort the keys before you use them).

--
F o x t r o t U n i f o r m
Found a typo in this node? /msg me
% man 3 strfry

  • Comment on Re: I don't understand why keys %hash does this ...

Log In?
Username:
Password:

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

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

    No recent polls found