hello,
i did the following in a script in accordance to perlthrtut
to find out the posibility to use threads and the answer was "We do not
have threads"
#!/usr/bin/perl
use Config;
if($Config{usethreads}){
print "We have threads\n";
}else{
print "We do not have threads\n";
}
the quiestions are:
did i make a mistake?
how can i correct it?
or How can i add threads support to my perl version (5.005_3)
in another script a i wrote:
all in the same script called thr.pl
#!/usr/bin/perl
use Config;
use Thread;
{
$thr= new Thread \&sub1;
}
sub sub1 {
print "In the thread\n";
}
~
then i did a sintax check
cbash-2.03# perl -c thr.pl
Can't locate Thread.pm in @INC (@INC contains:
/usr/lib/perl5/5.00503/i586-linux
/usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i586-linux
/usr/lib/perl5
/site_perl/5.005 .) at thr.pl line 3.
what is the problem.
thanks
ulises