in reply to Determining a Unix PID

Check out Proc::ProcessTable - I think it has what you want.