Invalid value for shared scalar at (eval 4)You can only assign shared values to a shared variable. This works:
my $obj = bless [], 'X'; share $obj; my $x:shared = $obj;
Dave.
In reply to Re^4: Annoying threads share problem!
by dave_the_m
in thread Annoying threads share problem!
by Ace128
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |