use Tie::File; my @file; tie @file, 'Tie::File, 'path/to/file'; [download]
In reply to Re: Reading file contents into an array by jjdraco in thread Reading file contents into an array by Anonymous Monk