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

Re^6: File Reading and Closing confusion

by repellent (Priest)
on Aug 09, 2010 at 15:37 UTC ( #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>) { ... }

$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! :)

Comment on Re^6: File Reading and Closing confusion
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2015-11-28 07:28 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (739 votes), past polls