is just fine.my %rh_count; $rh_count{$string}++;
But you are not summing the values up, you are merely counting them - is that what you want?
(Update: corrected spelling)
In reply to Re: using hashes to count
by moritz
in thread using hashes to count
by spiros
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |