Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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: (10)
As of 2015-08-01 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls