in reply to More IPC::Open2 stuff
Setting the filehandle to nonblocking is probably not the answer to this, but it may help with the buffering problem. If you do set the nonblocking flag, use select to avoid having to poll the filehandle.
Use sysread to read one byte at a time, or set the filehandle nonblocking and read (say) 256 at a time, but use select to wait for more to arrive.
Andrew.
(Hrm, I think untitled nodes should be given default names so we can click on them in newest nodes)
|
|---|