in reply to How can we read each line from a file onto an array?

open FILE, '/path/to/file' or die "Can't open file: $!\n"; my @array = <FILE>;

All very simple :)