open(my $fh, '<', "/some/path") or die $!;
my @ary = <$fh>;
When evaluated in list context, the diamond operator returns a list consisting of all the lines in the file (in this case, assigning the result to an array supplies list context). The line terminator is retained, and ...