Or just a traditional "if":
if (!open my $log_FH, '>', './testlogifle.txt') { print "Failure to open log file.\n"; die "Failure to open log file.\n"; }
In reply to Re^3: Multiple actions triggered by failure to open a file
by kschwab
in thread Multiple actions triggered by failure to open a file
by GreenLantern
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |