hotshot has asked for the wisdom of the Perl Monks concerning the following question:

Hello all!

I'm using kill('KILL', $pid) to kill a process. This process creates children, and I want somehow to kill them too, how can I do that? Is there in Perl something similar to pstree -plc $PID (like in Unix), that can help me get the children's pid, or even something that gets a pid as parameter and kills it with it's children?