in reply to Re: 'Simple' comparing a hash with an array
in thread 'Simple' comparing a hash with an array

One problem leaps out at me immediately, you aren't chomping your input lines. Sometimes you'll end up with words like "at\n" in your histogram.
Nope. Try it. \n is whitespace, which is consumed by the split.
  • Comment on Re^2: 'Simple' comparing a hash with an array