programming-examples/perl/Statement/The or part allows for a statement to be executed if the main part fails.pl

5 lines
102 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl -w
$filename = "nofile";
open(TMP, $filename) or die "Can't open \"$filename\"";