From: Iain Truskett Date: Mon, 1 Jul 2002 14:58:14 +0000 (+1000) Subject: Threads doc patch X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=56ca1794c27eeea2bc5a83241e3bcd51c9c921f7;p=p5sagit%2Fp5-mst-13.2.git Threads doc patch Message-ID: <20020701045814.GB1805@eh.org> p4raw-id: //depot/perl@17387 --- diff --git a/pod/perlthrtut.pod b/pod/perlthrtut.pod index 2d07fb5..583face 100644 --- a/pod/perlthrtut.pod +++ b/pod/perlthrtut.pod @@ -465,8 +465,8 @@ assignment will cause the thread to die. For example: ... create some threads ... $hash{a} = 1; # all threads see exists($hash{a}) and $hash{a} == 1 - $hash{a} = $var # okay - copy-by-value: same affect as previous - $hash{a} = $svar # okay - copy-by-value: same affect as previous + $hash{a} = $var # okay - copy-by-value: same effect as previous + $hash{a} = $svar # okay - copy-by-value: same effect as previous $hash{a} = \$svar # okay - a reference to a shared variable $hash{a} = \$var # This will die delete $hash{a} # okay - all threads will see !exists($hash{a})