open my $fh, "<", $path or die "Could not open: $!"; my @inhalt = <$fh>; close $fh;