You have a race condition.
The child is waiting for the pipe to empty so it can print out more.
The parent is waiting for the child to end before emptying the pipe.
In reply to Re: why IPC::Open3 can't execute MS-DOS "dir" command?
by ikegami
in thread why IPC::Open3 can't execute MS-DOS "dir" command?
by kiinoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |