Don't ask to ask, just ask | |
PerlMonks |
Re: select open2 filehandles for readingby sgifford (Prior) |
on Apr 30, 2007 at 15:57 UTC ( [id://612800]=note: print w/replies, xml ) | Need Help?? |
The traditional UNIX way to determine whether to use line- or block-buffering (and the way generally implemented by the stdio library) is by whether stdout is connected to a terminal (TTY) or not. You can convince many programs to use line buffering by connecting them to a pseudo-TTY, using a module like IO::Pty or Expect.
In Section
Seekers of Perl Wisdom
|
|