http://www.perlmonks.org?node_id=790793


in reply to fork usage

if you're new to forking within a process look at a fork interface such as Proc::Fork
Remember to always wait for your child processes to terminate (or kill them) before you exit i.e. waitpid $childPID, 0;

Good luck.