use Proc::Killfam; killfam 9, $pid; [download]
In reply to Re: Best way to kill a child process by zentara in thread Best way to kill a child process by doylebobs