in reply to Re: Pipe problems
in thread Pipe problems

Autoflush on the WRITE filehandle in A seems more likely to be the problem. In newer versions of Perl you can use:
use IO::Handle; # ... WRITE->autoflush(1);
In older versions you should use:
$oldfh = select(WRITE); $| = 1; select($oldfh);

Update: bluto's right, IPC::Open2 does this for you. I usually just use pipe, which doesn't.

Replies are listed 'Best First'.
Re^3: Pipe problems
by bluto (Curate) on Aug 31, 2004 at 21:13 UTC
    This won't help this problem. According to even older perl docs for IPC::Open2 autoflush is turned on for the parent's write handle.