Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by bhargavkanakiya (Initiate)
on Feb 03, 2013 at 08:10 UTC ( [id://1016800]=note: print w/replies, xml ) Need Help??


in reply to Re^3: help with error 'readline() on unopened filehandle'
in thread help with error 'readline() on unopened filehandle'

i understood that and updated the code as

... open my $MYFILE , "<$filename" || "Can't open the output file!"; ...

then the error changed to 'readline() on closed filehandle $MYFILE' even though i have not closed the file. this is the first code that i've written using perl and i am completely new to it. any help is appreciated. thanks.

Replies are listed 'Best First'.
Re^5: help with error 'readline() on unopened filehandle' (precedence, or not ||)
by Anonymous Monk on Feb 03, 2013 at 08:21 UTC
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-24 03:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found