Re: updating variable in Parent using Parallel::ForkManager

2012-08-01 Thread Dr.Ruud
On 2012-07-30 15:47, punit jain wrote: my $pm = new Parallel::ForkManager(10); my $count=0; foreach my $user (@users) { $pm->start($user) and next; my $result; --- do some processing --- $pm->finish(0, \$result); } $pm->wa

Re: updating variable in Parent using Parallel::ForkManager

2012-07-30 Thread John W. Krahn
punit jain wrote: Hi, Hello, I am facing an issue. Below is code snippet : - my $pm = new Parallel::ForkManager(10); my $count=0; foreach my $user (@users) { $pm->start($user) and next; my $result; --- do some processing ---

Re: updating variable in Parent using Parallel::ForkManager

2012-07-30 Thread Shlomi Fish
Hi Punit, On Mon, 30 Jul 2012 19:17:21 +0530 punit jain wrote: > Hi, > > > I am facing an issue. Below is code snippet : - > It is a good idea to include a self-contained reproducing code that will demonstrate the problem - not incomplete snippets. > my $pm = new Parallel::ForkManager(10);