in reply to muliple request with fork
Parallel::ForkManager has an example you could use as a foundation.