isotope has asked for the wisdom of the Perl Monks concerning the following question:
send_file(\*FILE); works fine b/c EOF arrives immediately, but send_file(\*STDIN); won't begin until I close the input stream.sub send_file { $_ = shift; foreach(<$_>) { sleep $time; print; } return(0); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Looping line-by-line through STDIN before EOF is received
by Boogman (Scribe) on Aug 22, 2000 at 01:58 UTC | |
|
Re: Looping line-by-line through STDIN before EOF is received
by btrott (Parson) on Aug 22, 2000 at 01:58 UTC | |
|
Re: Looping line-by-line through STDIN before EOF is received
by elwarren (Priest) on Aug 22, 2000 at 02:54 UTC |