open(FH,"$file1") or die " Could not open $file1!!! Here's why: $!"; push @array, ; close FH or die "Could not close $file1. Here's why: $!";