Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2016-12-09 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (148 votes). Check out past polls.