diff options
author | Iain Truskett <spoon@cpan.org> | 2002-07-02 00:58:14 +1000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2002-07-01 09:26:02 +0000 |
commit | 56ca1794c27eeea2bc5a83241e3bcd51c9c921f7 (patch) | |
tree | 1c52ad81f882525faa01a8a5d185d08e6576c347 /pod/perlthrtut.pod | |
parent | ad716b8eadd120352e8587d8a627edd69ad62709 (diff) | |
download | perl-56ca1794c27eeea2bc5a83241e3bcd51c9c921f7.tar.gz |
Threads doc patch
Message-ID: <20020701045814.GB1805@eh.org>
p4raw-id: //depot/perl@17387
Diffstat (limited to 'pod/perlthrtut.pod')
-rw-r--r-- | pod/perlthrtut.pod | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perlthrtut.pod b/pod/perlthrtut.pod index 2d07fb5f93..583faceaf2 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}) |