Re: Query regarding Parallel::ForkManager

2012-03-30 Thread Dr.Ruud
On 2012-03-30 11:14, punit jain wrote: my $file = "/tmp/test"; die "\n Killed as filed doesnot exist \n" if(-e $file); It looks like you have to reverse your test. -e $file or die "[$$] exit early because '$file' doesn't exist\n"; But why even start a child, if its d

Query regarding Parallel::ForkManager

2012-03-30 Thread punit jain
Hi , I am using ForkManager module for multiprocessing in my code below : - use Parallel::ForkManager; $pm = new Parallel::ForkManager($MAX_PROCESSES); foreach $data (@all_data) { # Forks and returns the pid for the child: my $pid = $pm->start and next; ... do some work with $d