in reply to Re: Sequential processing with fork.in thread Sequential processing with fork.
Then my code does exactly what you need. You can modify or even remove the $fork->run_on_* subs if you don't need the PIDs or don't care if any of the procs failed.