in reply to parallel forks

If you want to do the same thing multiple times, you need some kind of loop. I know Parallel::ForkManager has the capability to send back data to the parent. See the "Data structure retrieval" example.

Replies are listed 'Best First'.
Re^2: parallel forks
by networker2149 (Novice) on Sep 17, 2011 at 03:55 UTC

    that's the problem. I think I want the forks to do different things, but it seems like none of the modules will do that in parallel and allow me to return data from the forked subroutines.

      Why would you ever spawn more than one child if all the children were forced to do the same thing!? It's obviously not true that they can't do different things.