Help for this page
use Parallel::ForkManager; ... $pm->finish; # do the exit in the child process } $pm->wait_all_children;