programming-examples/perl/Statement/The or part allows for a statement to be executed if the main part fails.pl
2019-11-15 12:59:38 +01:00

5 lines
102 B
Perl

#!/usr/bin/perl -w
$filename = "nofile";
open(TMP, $filename) or die "Can't open \"$filename\"";