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

Re: Cutting the top percentage out of a Hash

by Codon (Friar)
on Apr 13, 2006 at 18:35 UTC ( #543177=note: print w/replies, xml ) Need Help??


in reply to Cutting the top percentage out of a Hash

Hashes aren't stored sorted in Perl. You can sort the data bofore you put it in the hash, but the data is stored in an arbitrary order. If you need the contents of the hash sorted, you need to the sort the data as you pull it from the hash.

Ivan Heffner
Sr. Software Engineer, DAS Lead
WhitePages.com, Inc.
  • Comment on Re: Cutting the top percentage out of a Hash

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://543177]
help
Chatterbox?
[choroba]: LanX Same here.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-02-19 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (292 votes). Check out past polls.