# add this before your foreach loop to sleep 3 seconds # between starting processes $pm->run_on_start(sub { sleep 3 });