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.
In reply to Locking hash values by bucky0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |