A more reliable approach to a related though slightly different problem is offered at Run commands in parallel. If you want to capture the output you could always open a series of pipes and use select (or IO::Select) to read from them. (Or write to files and read back. etc.)
In reply to Re (tilly) 1: Run some commands in parallel
by tilly
in thread Run some commands in parallel
by mugwumpjism
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |