Try changing the last line of the program to
foreach my $str (@lines){print $str, "\n"};
I'm guessing that all the lines are being printed one over the other on the terminal?
In reply to Re: Strange File read problem
by BrowserUk
in thread Strange File read problem
by abhishes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |