in reply to PERL/Windows file open error
Hi,
maybe try to change this line:
to something like this:open ($FH,'<',$fn);
This way, you can ascertain the name of the file you were trying to open and figure out whether there is something wrong with the content of $fh.open $FH, '<', $fn or die "Failed to open file $fh $!";
Update (15:50 UTC): I see now that you're actually printing the file name right before, so what I suggested is useless. And also that you're using autodie. Never mind.
|
---|
In Section
Seekers of Perl Wisdom