From: Stas Bekman Date: Fri, 14 Feb 2003 11:12:39 +0000 (+1100) Subject: [doc patch] ext/threads/shared/shared.pm X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=72ac79b36fc2613b9b03b8424fe60fdaa5759b16;p=p5sagit%2Fp5-mst-13.2.git [doc patch] ext/threads/shared/shared.pm Message-ID: <3E4C3477.7030306@stason.org> p4raw-id: //depot/perl@18707 --- diff --git a/ext/threads/shared/shared.pm b/ext/threads/shared/shared.pm index 3b41a30..c8d72e5 100644 --- a/ext/threads/shared/shared.pm +++ b/ext/threads/shared/shared.pm @@ -182,10 +182,10 @@ Taking references to the elements of shared arrays and hashes does not autovivify the elements, and neither does slicing a shared array/hash over non-existent indices/keys autovivify the elements. -share() allows you to C{key}> without giving any error -message. But the C<$hashref->{key}> is B shared, causing the error +share() allows you to C<< share $hashref->{key} >> without giving any error +message. But the C<< $hashref->{key} >> is B shared, causing the error "locking can only be used on shared values" to occur when you attempt to -C{key}>. +C<< lock $hasref->{key} >>. =head1 AUTHOR