in reply to Threading: Invalid value for shared scalar

The thread How to share huge data structure between threads? contains some sample code for sharing nested references.


"The dead do not recognize context" -- Kai, Lexx
  • Comment on Re: Threading: Invalid value for shared scalar

Replies are listed 'Best First'.
Re^2: Threading: Invalid value for shared scalar
by Anonymous Monk on Dec 10, 2014 at 16:58 UTC
    my %hm_n2g:shared = (); my $row = &share([]); $hm_n2g{"aa"}=$row; $row->[0]=1; $row->1=2; my @arr = @{$hm_n2g{"aa"}}; print @arr[0]." ".@arr1."\n";