Yes.
By the way, $|=1; won't affect IN, just the currently selected handle (STDOUT). The easiest way to turn on autoflushing for another handle is
use IO::Handle; IN->autoflush(1);
But what about buffering in the other direction. Unfortunately, you can't really control any buffering the child might do to its output. If you need interactivity, you should have better luck with Expect since it uses ptys to communicate with the child, and that usually causes the child to avoid buffering.
In reply to Re^6: Send Bash Command
by ikegami
in thread Send Bash Command
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |