Re: How do I sort a hash (optionally by value instead of key)?

[email protected] (brian d foy) Sun, 06 Jan 2008 13:05:56 -0600
Newsgroups perl.perlfaq.workers
Message-ID <060120081305564828%[email protected]>
[[ This message was both posted and mailed: see
   the "To," "Cc," and "Newsgroups" headers for details. ]]

In article <[email protected]>, Mark
<[email protected]> wrote:


>              printf "%-20s %6d\n", $key, $hash{$value};
>              }
> 
> Shouldn't that be $hash{$key} ?

Indeed it should. I've fixed that in revision 10481.

Thanks,