Mark_Galeck has asked for the wisdom of the Perl Monks concerning the following question:
Every child in kindergarten knows what this does:
What I want, is to get into the loop not only when a new line arrives, but also, after 1 second of waiting for it, (in which case $_ should be empty). I am thinking along the lines of fork or something, but it's going to be somewhat ugly. Is there a nice "monk" way to do this? Thank you, Markwhile (<>) { process $_ }
|
|---|