a) You're only printing the values, when the question
asked for the key/value pairs and
b) you're doing a
lexical sort - not a numeric one.
Perl Training in the UK <http://www.iterative-software.com>
In reply to Re: Re: How to sort a hash by its values?
by davorg
in thread How to sort a hash by its values?
by supernewbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |