[Israel.pm] Interprocess using Safe Pipes Opens

Tal Kelrich tal at musicgenome.com
Sun Aug 5 04:38:05 PDT 2007


On Fri, 03 Aug 2007 00:30:15 +0300
Shmuel Fomberg <semuelf at 012.net.il> wrote:

> Hello There.
> 
> This version behave a little better, (all the childs get their output)
> But the child print their answer only after the script end, and in
> reverse order. (child 3 print first) I can't figure why.
> 
> Shmuel.

They aren't flushing, IMHO.

use IO::Handle;
$fh = $fh = $fh[0]{'fh'};
print "blah";
$fh->autoflush(1);
print $fh "blah blah";
#alternately, $fh->flush();

alternately, use syswrite.

-- 
Tal Kelrich
PGP fingerprint: 3EDF FCC5 60BB 4729 AB2F  CAE6 FEC1 9AAC 12B9 AA69
Key Available at: http://www.hasturkun.com/pub.txt
----
I WILL NOT XEROX MY BUTT
I WILL NOT XEROX MY BUTT
I WILL NOT XEROX MY BUTT
I WILL NOT XEROX MY BUTT

	Bart Simpson on chalkboard in episode 7F01
----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://perl.org.il/pipermail/perl/attachments/20070805/98ec19bf/attachment-0004.pgp 


More information about the Perl mailing list