in reply to Multiple Childern/Zombies

The OS will notify the parent of a child's death by sending it a SIGCHLD signal, so you can set up a signal handler in which you reap the children using wait or waitpid.  In its most simple case:

$SIG{CHLD} = sub { wait };

(On many systems, $SIG{CHLD} = 'IGNORE'; has the same effect.)