Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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>) { ... }

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


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2015-07-07 12:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls