Have a look at Parallel::ForkManager.
In reply to Re: Learning to use fork() by markong in thread Learning to use fork() by ovedpo15