Since 'a' is one of the "words" you're looking for, each word that contains an 'a' is printed out in the end. A word like "candidate" is printed for 'a', 'an' and 'can'.
You should be a bit more specific about what kind of output you expect. Provide a few lines of sample input and what the output should look like, then we can help you a bit more.
In reply to Re: 'Simple' comparing a hash with an array
by moritz
in thread 'Simple' comparing a hash with an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |