perlcat has asked for the wisdom of the Perl Monks concerning the following question:
But I fail combining the two above mentioned criteria.sub hashValueDescendingNum { $count{$b} <=> $count{$a}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash sorting
by ikegami (Patriarch) on Jan 25, 2009 at 17:07 UTC | |
by Anonymous Monk on Jan 26, 2009 at 18:30 UTC |