Wonky example in perlthrtut
authorAlex Davies <alex.davies@talktalk.net>
Fri, 20 Feb 2009 08:39:29 +0000 (09:39 +0100)
committerDavid Mitchell <davem@iabyn.com>
Tue, 14 Apr 2009 22:51:36 +0000 (23:51 +0100)
Fix at least the syntax of the example.
See : Message-ID: <F00A81D78228413FBED223C3919BE75B@Amelie>

(cherry picked from commit 9732edbb486f42c348817d585e1a7e8533f152fe)

pod/perlthrtut.pod

index e1acf6d..822cac4 100644 (file)
@@ -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 {