http://www.perlmonks.org?node_id=377848


in reply to Fork/Child Question

You might want to take a look at Parallel::ForkManager which does almost exactly this.