open( my $FH, $filename ) or die $!; my @content = <$FH>; close $FH;