From: Alex Davies Date: Fri, 20 Feb 2009 08:39:29 +0000 (+0100) Subject: Wonky example in perlthrtut X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9732edbb486f42c348817d585e1a7e8533f152fe;p=p5sagit%2Fp5-mst-13.2.git Wonky example in perlthrtut Fix at least the syntax of the example. See : Message-ID: --- diff --git a/pod/perlthrtut.pod b/pod/perlthrtut.pod index e1acf6d..822cac4 100644 --- a/pod/perlthrtut.pod +++ b/pod/perlthrtut.pod @@ -859,7 +859,7 @@ things we've covered. This program finds prime numbers using threads. 13 } 14 $stream->enqueue(undef); 15 - 16 threads->create(\&check_num, $stream, 2); + 16 my $kid = threads->create(\&check_num, $stream, 2); 17 $kid->join(); 18 19 sub check_num {