On 11/8/06, Jen Spinney <[EMAIL PROTECTED]> wrote:
print CHILD "printing to child\n"; sleep 5;
Concurrent processes can be counterintuitive at times. Because the CHILD filehandle is buffered, that line won't necessarily be sent to the child process right away. In your program, I'd expect it to be sent only once the filehandle is closed (i.e., when the parent process exits). If you use the $| variable, or otherwise flush the output buffer before sleep, I think you'll get results more to your liking. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>