in reply to Howto capture array/hash back after threaded process

maybe this will work

push @array1, new threads \&funct_array,($par1,$par2,$filename);
if all fails there is the threads::shared to set up a cheaters way of storing values

Replies are listed 'Best First'.
Re^2: Howto capture array/hash back after threaded process
by neversaint (Deacon) on Mar 02, 2006 at 08:41 UTC
    Hi zer, Thanks for the reply, but it doesn't work. I've also tried this variation:
    my @array1; push @array1,threads->new(\&funct_array,($par1,$par2,$filename)); print Dumper \@array1;
    Also doesn't work. Can you give example of how to use threads::shared? I've read the documentation but couldn't figure out how to take the subroutine in the context.

    ---
    neversaint and everlastingly indebted.......