in reply to Reading file contents into an array
use Tie::File; my @file; tie @file, 'Tie::File, 'path/to/file'; [download]