vit has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
What am I doing or understanding wrong using this module this way:
What am I doing or understanding wrong using this module this way:
At the end I want to have populated @army @ar = (); use Parallel::ForkManager; my $pm = new Parallel::ForkManager(3); foreach my $rec (@urls) { # Forks and returns the pid for the child: my $pid = $pm->start and next; fill out @ar processing @urls $pm->finish; # Terminates the child process }
Back to
Seekers of Perl Wisdom