Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: help with error 'readline() on unopened filehandle'

by Anonymous Monk
on Feb 03, 2013 at 09:24 UTC ( #1016812=note: print w/replies, xml ) Need Help??


in reply to help with error 'readline() on unopened filehandle'

I'm not sure whether the answer is in the above rather lengthy-looking thread, but it is:

# the die() will never get executed # because of operator precedence open my $output , ">$outfile" || die "Can't open the output file!"; # this would work: open(my $output , ">$outfile") || die "Can't open the output file!"; # and so would this: open my $output , ">$outfile" or die "Can't open the output file!";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016812]
help
Chatterbox?
[marto]: even the YouTubes?

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2017-06-27 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (610 votes). Check out past polls.