Easiest: my @file = <$file>;
Another option:
my @file; while (<$file>) { push(@file, $_); } [download]
In reply to Re: reading files by Mr. Muskrat in thread reading files by Anonymous Monk