in reply to Re: Re: reading files
in thread reading files

When printing try:

foreach $line (@file) { print $line."\n"; }

Alternatively, you could change Mr. Muskrat's code as follows:

my @file; while (<$file>) { push(@file, "$_\n"); }