Pathologically Eclectic Rubbish Lister | |
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 ( [id://982242]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|