in reply to Re: Code for generating a word frequency count not working
in thread Code for generating a word frequency count not working

I would suggest that the -w flag is a bit outdated, the:
use warnings;
pragma is a better way of having the same advantages with a finer control on the effects (lexical scope, possibility to silence some warnings when needed, etc.).

Update; Beaten by a few minutes by GrandFather on this one. Corrected a typo.