in reply to
Waiting..
You might find
Parallel::ForkManager
useful. It was made to make this sort of thing easy, and your sample code is almost an example from the pod.
Comment on
Re: Waiting..
In Section
Seekers of Perl Wisdom