Ah, I see. Then something like this may help (not tested):
$pm->run_on_finish( sub { state $counter; start_next_10_processes() unless ++$counter % 10; } );
In reply to Re^3: Parallel::ForkManager How to wait when 1st 10 Child processe are over out of 100
by zwon
in thread Parallel::ForkManager How to wait when 1st 10 Child processe are over out of 100
by anshumangoyal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |