Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Hash sort again!!

by rchiav (Deacon)
on Apr 25, 2001 at 20:21 UTC ( #75523=note: print w/replies, xml ) Need Help??


in reply to Hash sort again!!

First question is - what do you think you're sorting? The hash itself? If so, you can't sort a hash. You can however sort a list of the keys or values. You might want to look at how sort works. It will "return" a sorted list. That means that you have to assign the sort to an array. Then that array will contain a sorted list of the keys.

Hope this helps..
Rich

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://75523]
help
Chatterbox?
[stevieb]: it's a long day when you want to make changes to a project and the entire test suite takes 2 hours to fully run :)
choroba knows the situation. At work, unit tests run for 30 minutes, and integration and end-to-end tests take almost one hour.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2017-03-26 22:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (315 votes). Check out past polls.