my $pid = $pm->start; if ($pid) { # this code runs in the parent sleep 3; next; }