Syntactic Confectionery Delight | |
PerlMonks |
Re: Re: Handling program output in real timeby etcshadow (Priest) |
on Nov 10, 2003 at 19:56 UTC ( [id://305946]=note: print w/replies, xml ) | Need Help?? |
This doesn't really address his issue, though, as writing to a FIFO is going to have the exact same buffering behavior (line based or block based) as writing to a pipe would.
Basically, as other users mentioned, perl internally does something along the lines of (psuedo-code): Not that FIFOs aren't useful, they just don't have anything to do with this particular problem. If, for example, he had no control over the output of this "blackbox" and it wanted to write to a named file... well then a FIFO would be really useful, because he could replace the named file with a named pipe (FIFO), and all would be cool. Here, though, the guy's already got an anonymous pipe... so swapping it with a named-pipe isn't gonna really change anything. ------------ :Wq Not an editor command: Wq
In Section
Seekers of Perl Wisdom
|
|