Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: sorting hash by a certain value (that it is in an array)

by jethro (Monsignor)
on Jul 17, 2012 at 13:35 UTC ( #982242=note: print w/replies, xml ) Need Help??


in reply to Re^2: sorting hash by a certain value (that it is in an array)
in thread sorting hash by a certain value (that it is in an array)

A hash is a different data structure than an array. Its advantage is that it allows arbitrary strings as keys instead of just a number. The disadvantage is that it can't be sorted. Read about "hash tables" on wikipedia if you want to know why.

  • Comment on Re^3: sorting hash by a certain value (that it is in an array)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://982242]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (14)
As of 2016-12-07 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (131 votes). Check out past polls.