From: Jarkko Hietaniemi Date: Fri, 16 Nov 2001 18:37:30 +0000 (+0000) Subject: 5005threads didn't work because $Thread::VERSION wasn't X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4cf4ea458eb1811161558c203d03964bd34808ab;p=p5sagit%2Fp5-mst-13.2.git 5005threads didn't work because $Thread::VERSION wasn't visible. Oops. p4raw-id: //depot/perl@13054 --- diff --git a/ext/Thread/Makefile.PL b/ext/Thread/Makefile.PL index fc09e7f..a636362 100644 --- a/ext/Thread/Makefile.PL +++ b/ext/Thread/Makefile.PL @@ -1,7 +1,7 @@ use ExtUtils::MakeMaker; WriteMakefile( NAME => 'Thread', - VERSION => '2.00', - MAN3PODS => {} - ); + VERSION_FROM => '../../lib/Thread.pm', + MAN3PODS => {}, +); diff --git a/lib/Thread.pm b/lib/Thread.pm index 4e88706..3aa6162 100644 --- a/lib/Thread.pm +++ b/lib/Thread.pm @@ -1,13 +1,11 @@ package Thread; -$VERSION = '2.00'; - use strict; -our $ithreads; -our $othreads; +our($VERSION, $ithreads, $othreads); BEGIN { + $VERSION = '2.00'; use Config; $ithreads = $Config{useithreads}; $othreads = $Config{use5005threads}; @@ -15,7 +13,7 @@ BEGIN { require Exporter; use XSLoader (); -our($VERSION, @ISA, @EXPORT, @EXPORT_OK); +our(@ISA, @EXPORT, @EXPORT_OK); @ISA = qw(Exporter);