On Wed, 04 Sep 2002 15:21:37 -0700
"John W. Krahn" <[EMAIL PROTECTED]> wrote:
> You should probably just return $newdata and assign it directly in the
> foreach loop.
> John
> --
True, but the nature of the threads in this one, I do not get the result.
One line beow in the example is:
$pool->job( \@out );
Now if I wanted to wait for the result there, no problem, but that is basically as
slow as not using threads..
Your other points I agree with completely. The example I gave was probably
poor. I am actually using:
foreach my $i ( 0 .. $#Cty ) {}
syntax to save on memory.. this is a 4500 element that can grow quite,
so the size of the reference I pass to the threads is important since
they are copied into each thread.
I was just trying to simplify for the example..
Thanks,
Greg
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]