No. Hashes are inherently non-ordered. However, for what you're trying to do, something like
will give you keys ordered by value.@keysByValue = sort { $clients{$a} cmp $clients {$b} } keys %clients;
In reply to Re: More Sorted Business with Hashes
by dws
in thread More Sorted Business with Hashes
by Spenser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |