http://qs321.pair.com?node_id=11102695


in reply to "open" Best Practices

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