http://qs1969.pair.com?node_id=781592


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.

--

See the Copyright notice on my home node.

Perl training courses