fxmakers has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: threads::shared hash
by BrowserUk (Patriarch) on Mar 27, 2004 at 01:01 UTC | |
by fxmakers (Friar) on Mar 27, 2004 at 01:14 UTC | |
by BrowserUk (Patriarch) on Mar 27, 2004 at 01:30 UTC | |
by fxmakers (Friar) on Mar 27, 2004 at 02:28 UTC | |
|
Re: threads::shared hash
by tilly (Archbishop) on Mar 27, 2004 at 07:20 UTC | |
by liz (Monsignor) on Mar 27, 2004 at 11:19 UTC |