I was going to propose the parent populate the array, create a pipe, create N children, and do print PIPE "$_\n" for 0..$#array; so each child could read (atomically) the index to the next data to be processed.
But it looks like Parallel::ForkManager already pretty much does that for you so perhaps you should just use that.
- tye
In reply to Re: Forking problem (manager)
by tye
in thread Forking problem UPDATED
by avi_learns_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |