You are combining two things. You can use something like
Win32::Process::KillProcess(5000,1); to kill process 5000 (or the numbers can be in variables). Since you did an Open using
Win32::Process::Open you can use
$p_obj->Kill($exitcode); (or use a constant). Do not call
GetExitCode -- it is used to return the code
after the process has exited.
HTH, --traveler