Try replacing
withchomp (my @words = <$fh>);
which will also remove the \r if present.tr/\r\n//d for my @words = <$fh>;
In reply to Re: Problem printing @arrays
by tybalt89
in thread Problem printing @arrays
by sbrothy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |