Since it's windows, perhaps you should look at Win32::Process.
In reply to Re: Capture PID from child process on Windows. by antirice in thread Capture PID from child process on Windows. by stmast