Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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!";


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2014-09-30 21:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (384 votes), past polls