in reply to Parallel Processing in Perl

It seems you never got farther than the SYNOPSIS of that module or you would have discovered the run_on_finish $code [, $pid ] method which does what you want.

PS: This was already suggested to you in Re: Running a Perl Code in different Processes

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.