Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://530402]
help
Chatterbox?
[marto]: good morning all
[Corion]: Good morning ;)
[marto]: meh, that's the last time I reply to finddata, I don't see an improvement in attitude or approach

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2017-03-30 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (353 votes). Check out past polls.