Script is not interpreted and returns: Invalid value for shared scalar at test.pl line 7.use threads; use threads::shared; my %hash : shared; my $var = "hello"; $hash{'foo'}{'bar'} = 1; $hash{$var}{'bar'} = 1;
Edited by Chady -- added code tags.
In reply to threads::shared hash by fxmakers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |