It appears the OP is interested in getting the values out in descending order (sorted).
for my $line (sort {$count_hash{$b} <=> $count_hash{$a}} keys %count_h +ash) { print "$line $count_hash{$line}\n"; }
Cheers - L~R
In reply to Re^2: String sorting in Perl
by Limbic~Region
in thread String sorting in Perl
by markdavis87
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |