Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 wandering the Monastery: (18)
As of 2014-09-16 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (17 votes), past polls