shonorio has asked for the wisdom of the Perl Monks concerning the following question:
If I remove the share function, it's running well, but I need to share the hash on threads and don't figure out way this happen.use threads; use threads::shared; my %Inventory; my %Test; share ( %Inventory ); $Test{0}{0} = 1; $Test{0}{1} = 1; $Test{1}{0} = 1; $Test{1}{1} = 1; %Inventory = %Test;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error on assigning shared hash
by runrig (Abbot) on Apr 22, 2004 at 00:24 UTC | |
by shonorio (Hermit) on Apr 28, 2004 at 15:03 UTC |