my $child; if ($child =fork()){ #continue with prog } elsif ($child == 0){ sleep 60; &code_to_exec; } else { die "Couldn't fork!" }