$fh = open() or die("File did not open")
$fh = open() die("File did not open") unless $fh
$fh = open() || die("File did not open")
open my $fh, '<', 'file.txt' or die "file.txt not found"; open(my $fh, '<', 'file.txt') || die 'file.txt not found';