On Thu, Apr 17, 2008 at 9:32 PM,  <[EMAIL PROTECTED]> wrote:
> Hi, buddies.
>  The code below can't work on my WindowsXP with SP2:
snip
>  It show me this information below after I run the code:
>         "Undefined subroutine &threads::new called at E:\test\learnperl
>  \thread.pl line 15."
>
>  And line 15 is:
>         my $t1 = new Thread \&abump;
>
>  I test the code under Linux, but the result is ways:
>  "var is 0";
>
>  So, what is wrong?
snip

Most likely the version of Perl you are using was not compiled to use
threads.  Type

perl -V

on the commandline and look for

Compile-time options

and tell use what it says after that.

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to