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
In reply to Re^2: ranking number of occurances
by ikegami
in thread ranking number of occurances
by halfcountplus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |