Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Internally, how do for() and while() differ?

by AppleFritter (Vicar)
on Oct 27, 2015 at 00:04 UTC ( [id://1146043]=note: print w/replies, xml ) Need Help??


in reply to Internally, how do for() and while() differ?

No; the for loop will slurp all of $fh into memory and then iterate over that, whereas while will only read one line at a time.
  • Comment on Re: Internally, how do for() and while() differ?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-18 19:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found