in reply to Trying to make a string generated like google
my @sorted_phases = sort { $b->{count} <=> $a->{count} } values %$strings;
You'll then have an array of your hashes ordered by the "count" value. The ones with the highest count will be at the start of the array.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Trying to make a string generated like google
by ultranerds (Hermit) on Jul 20, 2009 at 10:43 UTC | |
Re^2: Trying to make a string generated like google
by ultranerds (Hermit) on Aug 10, 2009 at 14:01 UTC | |
by davorg (Chancellor) on Jun 30, 2010 at 07:50 UTC |
In Section
Seekers of Perl Wisdom