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

Re: Print a hash in order

by bassplayer (Monsignor)
on Feb 15, 2006 at 15:13 UTC ( #530402=note: print w/ replies, xml ) Need Help??


in reply to Print a hash in order

The order that values are entered into a hash are not relevant to how they are later retrieved. You cannot count on the order of hash keys or values. Your best bet is probably to sort on the keys before iterating through them.

bassplayer


Comment on Re: Print a hash in order
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2014-07-13 23:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (252 votes), past polls