foreach my $key2 (keys %UnNum{ foreach my $word(@midwords){ $UnNum{$keys2}++ if ($keys2 eq $word); } }
This might be what you mean
In reply to Re: Counting instances in a hash from an array
by zer
in thread Counting instances in a hash from an array
by Gavin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |