note
bart
<blockquote><i>i guess that under windows fork is implemented using threads so the child does not have his own STDOUT.</i></blockquote>
My guess is that that is indeed what is happening.
<blockquote><i>Why are you dont you open a new filhandle in each child process</i></blockquote>
Because he wants to use it together with <tt>[system]</tt>(), and that won't work as intended, with any other filehandle.
<P><b>Update</b>: Gee, [Koosemose] appears to [id://343859|be right], this does seem to work right (at least on Win98):
<code>
open CHILDOUT, ">test.txt";
select CHILDOUT;
system('perl -le "print q(Hello!)"');
</code>
<P>I think that would indeed solve it.
343814
343821