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

RE: Looping line-by-line through STDIN before EOF is received

by Boogman (Scribe)
on Aug 22, 2000 at 01:58 UTC ( [id://28929]=note: print w/replies, xml ) Need Help??


in reply to Looping line-by-line through STDIN before EOF is received

Use a while loop instead of a foreach loop. The foreach loop will wait until it has a whole array of the input, whereas a while loop will go line by line.
  • Comment on RE: Looping line-by-line through STDIN before EOF is received

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-18 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found