Thank you! Can't say I've always done that in the past (although I've been using the 3-arg form for..?ever?). The "or die" with $!:
open my $fh, '<', $file or die "$0: cannot open $file: $!";
has been updated in my quick snippets!
UPDATE: removed extra semicolon after first line - thanks haukex
In reply to Re: "open" Best Practices
by VinsWorldcom
in thread "open" Best Practices
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |