in reply to A little help with PID
I don't really understand your question, but you can see How to catch that pid? and use Proc::Killfam on the pid to get all it's children.