Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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! :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://853849]
help
Chatterbox?
[karlgoethebier]: Discipulus: see also Re: poll ideas quest 2017

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-06-26 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (575 votes). Check out past polls.