in reply to Re: Count number of occurrences of a list of words in a file
in thread Count number of occurrences of a list of words in a file
My assumption was that there might be many things in Azaghal's input textfile.txt that look like "words", and he or she only wanted to count the words specified in the list.txt file. If that's the case, one must check that a "word" exists before incrementing it else one will autovivify a "word" that was not previously present. Hence, two hash accesses are necessary.
Give a man a fish: <%-{-{-{-<
|
|---|