Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^6: File Reading and Closing confusion

by repellent (Priest)
on Aug 09, 2010 at 15:37 UTC ( [id://853849]=note: print w/replies, xml ) Need Help??


in reply to Re^5: File Reading and Closing confusion
in thread File Reading and Closing confusion

    Yes, but while takes care of that - and we/you were talking about a while loop, weren't you?

Yes and no. I was talking about:
while (<FH>) { ... }

VS
$line = <FH>; # on its own / not as while condition

Given the OP's prelude, I really thought that the OP was referring to these two cases. Sorry for the confusion! :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-19 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found