in reply to Re: ranking number of occurances
in thread ranking number of occurances

I don't think so. Your code says that line/file "a48754a4397543a43753a" contains "a" 8 times. Even if $_ represents a file instead of a line, no change is needed.

If he wants the total, then he'd need

$hash{$_} = $c; # Per line/file count $total += $c; # Total count