in reply to More Sorted Business with Hashes
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: More Sorted Business with Hashes
by IlyaM (Parson) on Dec 22, 2001 at 05:56 UTC | |
by dws (Chancellor) on Dec 22, 2001 at 06:07 UTC | |
by tilly (Archbishop) on Jan 03, 2002 at 05:50 UTC | |
|
Re: Re: More Sorted Business with Hashes
by dha (Acolyte) on Dec 24, 2001 at 00:12 UTC | |
|
Re: Re: More Sorted Business with Hashes
by dha (Acolyte) on Dec 24, 2001 at 00:18 UTC | |
by dha (Acolyte) on Dec 24, 2001 at 00:21 UTC |