3 ms·
Nothing is wrong with that. However the actual Perl open() would be like this... open my $fh, '<', 'file.txt' or die "file.txt not found"; open(my $fh,
by draegtun 14y ago
Nothing is wrong with that. However the actual Perl open() would be like this...
open my $fh, '<', 'file.txt' or die "file.txt not found";
open(my $fh, '<', 'file.txt') || die 'file.txt not found';
Above two lines are equivalent.