On Thu, 31 Aug 2006, Daniel McBrearty wrote:
> I have a short program that runs OK on a win xp box at work, with
> latest AS perl ... it starts like this:
>
> <snip>
[...]
> use Config;
[...]
> die "no thread support : $!" unless ($Config{usethreads});
This code should *never* die: $Config{usethreads} should always be
"define" for ActivePerl, but even when you use a version of Perl
compiled without threads the value should be "undef" (as a string,
not the undef value), which also evaluates to true...
> </snip>
>
> now I just installed the same build of AS perl on my home laptop, also
> winxp, and run the program ... I get
>
> no thread support :
>
> when I run it.
That is really weird. Check what
perl -V:usethreads
and
perl -V
are printing to see if you may be running a totally different version
of Perl than you expect.
Also run
perl -MConfig -eprint$INC{'Config.pm'}
to check if maybe you are picking up a different Config.pm module than
you think you are.
Cheers,
-Jan
> Isn't $Config{usethreads} on or off in the actual build of AS perl?
> WHy would I get an error on one install, not the other?
>
> thanks
>
> Daniel
>
>
> --
> Daniel McBrearty
> email : danielmcbrearty at gmail.com
> www.engoi.com : the multi - language vocab trainer
> BTW : 0873928131
> _______________________________________________
> Perl-Win32-Users mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs