I have a Perl script that is counting the number of occurrences of various strings in a text file. I want to be able to check if a certain string is not yet a key in the has
You can just go with:
if(!$strings{$string}) ....