in reply to fork and print..

Try closing MFOUT before you fork: close(MFOUT); This should flush the contents of the output buffer, which otherwise would get duplicated in all of the children.

Replies are listed 'Best First'.
(tye)Re: fork and print..
by tye (Sage) on May 17, 2001 at 19:11 UTC

    And probably the reason this code works for jepri and not for Kung is that newer Perls (5.6) auto flush buffers before forking (on many platforms).

            - tye (but my friends call me "Tye")