in reply to Problem printing @arrays
Try replacing
withchomp (my @words = <$fh>);
which will also remove the \r if present.tr/\r\n//d for my @words = <$fh>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem printing @arrays
by sbrothy (Acolyte) on Sep 04, 2021 at 15:45 UTC |