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
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