XP is just a number | |
PerlMonks |
RE: Looping line-by-line through STDIN before EOF is receivedby Boogman (Scribe) |
on Aug 22, 2000 at 01:58 UTC ( [id://28929]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|