bucky0 has asked for the wisdom of the Perl Monks concerning the following question:
Any suggestions? As far as I know, this should be a valid operation.use strict; use warnings; use threads; use threads::shared; # make the shared value my %hash : shared; # create the key I want $hash{testElem} = 0; # attempt to lock it lock $hash{testElem}; # which fails.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Locking hash values
by jettero (Monsignor) on Dec 18, 2006 at 18:06 UTC | |
by bucky0 (Initiate) on Dec 18, 2006 at 18:25 UTC | |
by ikegami (Patriarch) on Dec 18, 2006 at 18:36 UTC | |
by bucky0 (Initiate) on Dec 18, 2006 at 18:55 UTC | |
by caelifer (Scribe) on Dec 18, 2006 at 19:35 UTC | |
by ikegami (Patriarch) on Dec 18, 2006 at 19:45 UTC | |
|