http://www.perlmonks.org?node_id=645132


in reply to killing linux process with CGI

additionally to the other comments about kill -9:
kill -9,@pid;
you should check the return value and the error message. why don't you want to know why it failed?
kill -9, @pid or die "Could not kill: $!";