Do you know where your variables are? | |
PerlMonks |
Re^2: sharing array of arrays between threadsby bebe (Novice) |
on Aug 10, 2012 at 23:32 UTC ( [id://986838]=note: print w/replies, xml ) | Need Help?? |
thank you so much for your help.... I've also tried the following... but I still have no luck getting this to work
my @X : shared; my $var = &share([]); for (my $i=0; $i< 222; $i++){ $X[$i] = $var; } sub abc { my $Var2; .... Here the string in $Var2 gets updated everytime abc is called push(@{X[$i]}, $Var2); }
thank you so much!!!
In Section
Seekers of Perl Wisdom
|
|