in reply to Re^2: buffering when reading from unnamed pipe with child process
in thread buffering when reading from unnamed pipe with child process
I have found setting autoflush in the parent via $|++; also helps; but using the pipe interface directly it also makes sense to do it this way. My recommendation in addition to the explicit flush is to set autoflush in the parent.