i currently have a hash map that counts the number of word occurances (over multiple files) but cumulatively. so i need a way of resetting the value to zero
this line increments the counter when the word is found:
$keywords{$word}++ if (exists $keywords{$word});
i have tried:
$keywords{$word}=0;
but this did not work, can anybody tell me the code to affectively do what i am trying to do?
this line increments the counter when the word is found:
$keywords{$word}++ if (exists $keywords{$word});
i have tried:
$keywords{$word}=0;
but this did not work, can anybody tell me the code to affectively do what i am trying to do?