in reply to Re: Unable to read files from a directory
in thread Unable to read files from a directory
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: $!";
|
|---|