- or download this
foreach my $i (0..$#tmp) {
# Forks and returns the pid for the child:
...
next;
};
}
- or download this
my $filename = $tmp[$i]->filename();
...
last unless defined($line);
chomp $line;
my ($dir, $file) = split(/\t/, $line);
- or download this
$process->($dir, $file, $config, $log);
}
$pm->finish; # Terminates the child process