Unfortunately I think my reading stdout with pipes is flawed!
Not necessarily so. More probably you are "suffering from buffering":
Try inserting
$| = 1;
at the top of your program. See perlvar.
In reply to Re^3: tracing system calls a perl script is making
by shmem
in thread tracing system calls a perl script is making
by gideondsouza
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |