Change '@words' in the first line to '%words'. I did this with your code and it started working.
It's a common mistake, one I make all the time (also with arrays) so I keep a copy of the Perl CD bookshelf handy whenever I'm coding.
ChumleyIn reply to Re: Newbie needs help
by chumley
in thread NEwbie needs help
by alvarr3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |