The stupid question is the question not asked | |
PerlMonks |
Re^9: Use of uninitialized value in string eqby SuicideJunkie (Vicar) |
on Sep 10, 2014 at 18:37 UTC ( [id://1100196]=note: print w/replies, xml ) | Need Help?? |
Take it piecewise. The part inside the brackets is $file or die "...". That will die if $file is zero or an empty string, or otherwise false. Then the result gets given to the open function. open "filename"; doesn't make any sense. See open, and use something more like open my $inputFileHandle, '<', $filename or die "can't open $filename for reading: $!\n";
In Section
Seekers of Perl Wisdom
|
|