Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Save the resultant of " hash sorted by values "

by citromatik (Curate)
on Mar 23, 2011 at 17:21 UTC ( #895054=note: print w/ replies, xml ) Need Help??


in reply to Save the resultant of " hash sorted by values "

When you sort a hash to output, you are really sorting temporarily the keys or the values, not the underlying hash.

To get a sorted hash try for example Tie::Hash::Sorted

citromatik


Comment on Re: Save the resultant of " hash sorted by values "

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2015-07-06 11:40 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 (73 votes), past polls