Elijah has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to share a hash table across numerous threads. I am able to share the hash by a simple:
my %hash : shared;
But then I try to assign a value to it by:
The error I get is: Invalid value for shared scalar at{lock(%hash); $hash{$arg1}->{$arg2}->{$arg3}->{$arg4} = $arg5;}
Is what I am trying to accomplish possible?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Sharing multitiered hash amongst multiple threads?
by BrowserUk (Patriarch) on Jan 28, 2006 at 21:51 UTC | |
Re: Sharing multitiered hash amongst multiple threads?
by zentara (Archbishop) on Jan 28, 2006 at 21:04 UTC |
Back to
Seekers of Perl Wisdom