I'd go somewhat further than your last paragraph and say:
Always use the three parameter version of open and use lexical file handles:
open my $inFile, '<', $filename or die "Unable to open $filename: $!";
In reply to Re^2: Unable to read files from a directory
by GrandFather
in thread Unable to read files from a directory
by antidote1316
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |