in reply to PERL issues a "lock can only be used on shared values" when locking a shared hash
Now, here is a pure-curiosity question ... since I try to avoid perlguts as much as possible. What is the entity that lock actually locks? Is it an item of data, or is it a symbol-table entry? If you have two variables referring to the same piece of data, say, and lock one of them, what is actually going to be seen as locked or not?
In Section
Seekers of Perl Wisdom