Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: File Reading and Closing confusion

by ikegami (Pope)
on Aug 09, 2010 at 00:17 UTC ( #853690=note: print w/ replies, xml ) Need Help??

in reply to File Reading and Closing confusion

What I am confused about is when in a loop I have something like while(<FH>){...}, is this any different than $line=<FH> or are these granularly the same?

while (<FH>) is transformed into while (defined($_ = <FH>)).

Yes, $_=<FH> has the same granularity as $line=<FH>, whatever that means.

Comment on Re: 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://853690]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2015-11-27 03:00 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 (714 votes), past polls