Would either Parallel::ForkManager or Schedule::Parallel be of assistance? While I lack in experience with the latter, my experience with the former has (so far) been that the jobs (code) are loaded into the queue, and N items are run, with the next job in the queue being run when another completes. Because they are child processes, they inherit the open filehandles, iirc.
In reply to Re: How do I run subroutines in parallel?
by atcroft
in thread How do I run subroutines in parallel?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |