in reply to select open2 filehandles for reading

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.
  • Comment on Re: select open2 filehandles for reading