![]() |
|
"be consistent" | |
PerlMonks |
Re^3: Basic IPC Exampleby zentara (Cardinal) |
on Jul 25, 2007 at 12:04 UTC ( [id://628667]=note: print w/replies, xml ) | Need Help?? |
Why do these function different? I suppose it could be as simple as the fact that delayed.pl script detects where its STDOUT is being directed and chooses to buffer in the case of open with pipe I've been trying to figure that one out for quite sometime. This is my take, (and I may be wrong). When you feed a program with piped input, the program will wait until the input pipe is closed, before proceeding. Why? How does it know when input has ended? When you run apps from a terminal, and feed it multiline input, you usually need to send a Control-D to signal "end of input.... now start processing it". Now the way you signal "end of input" in a pipe is to close it. See EOF character I'm not really a human, but I play one on earth. Cogito ergo sum a bum
In Section
Seekers of Perl Wisdom
|
|