vit has asked for the wisdom of the Perl Monks concerning the following question:
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 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question about Parallel::ForkManager
by ikegami (Patriarch) on Sep 30, 2011 at 21:31 UTC | |
by vit (Friar) on Sep 30, 2011 at 21:46 UTC | |
by ikegami (Patriarch) on Sep 30, 2011 at 22:01 UTC | |
by vit (Friar) on Sep 30, 2011 at 22:07 UTC | |
by zentara (Cardinal) on Oct 01, 2011 at 08:16 UTC | |
by ikegami (Patriarch) on Oct 01, 2011 at 21:55 UTC | |
|
Re: Question about Parallel::ForkManager
by Anonymous Monk on Oct 02, 2011 at 12:31 UTC |