Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^9: Use of uninitialized value in string eq

by SuicideJunkie (Vicar)
on Sep 10, 2014 at 18:37 UTC ( [id://1100196]=note: print w/replies, xml ) Need Help??


in reply to Re^8: Use of uninitialized value in string eq
in thread Use of uninitialized value in string eq

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";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1100196]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 09:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found