in reply to Fork and pipe

You're prints from the child are buffered. Set $| = 1; in the child, after you reopen STDOUT.

I see a couple of other problems. The parent appears to only read one name, and the child does not exit 0; when done.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: Fork and pipe
by gri6507 (Deacon) on Aug 30, 2002 at 16:07 UTC
    Setting $| = 1 does not seem to do anything. I had tried it out before, and opted to leave it out now. As for the parent reading only one name, well, I need to be able to read the first one before moving onto "greater challenges" :-).