compare the number of times a string occurs in a set of filesas opposed to lines in which the pattern occurred, you'll need to add to the hash's value:
$hash{$_} += $c;
for your code, or
$hash{$_} += $c if $c;
for ikegami's
In reply to Re: ranking number of occurances
by FunkyMonk
in thread ranking number of occurances
by halfcountplus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |