Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by tmharish (Friar)
on Feb 03, 2013 at 12:24 UTC ( [id://1016824]=note: print w/replies, xml ) Need Help??


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

There are two different answers above which point you to this but the essence is - If you are not using brackets you must know operator precedence.

And of course you should also know that 'or' works between statements because each statement evaluates to true or false.

Getting messed up with file open occurs so often that I find it far easier to enforce die on failure. I understand why Perl does this but personally when I open a file, nearly always, I expect to have it open.

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

Log In?
Username:
Password:

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

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

    No recent polls found