From:                   "Jessee Parker" <[EMAIL PROTECTED]>
> I am trying to use the Thread module but I get the following error:
> 
> Can't locate Thread.pm in @INC (@INC contains:
> /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
> /usr/lib/perl5/site_perl/5.6.1/i386-linux
> /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0
> /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux
> /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at
> thread.pl line 3. BEGIN failed--compilation aborted at thread.pl line
> 3.
>
> I tried to install from CPAN but it says that I already have it
> installed. The code I am using is just some sample code from
> Programming Perl:
> 
> #!/usr/bin/perl
> 
> use Thread qw/async yield/;

You would have to recompile your perl with 5005threads enabled.
But I don't think you should ... it will slow the scripts even if you 
do not use threads and these threads were never made stable.

If you want to play with threads you should install Perl 5.8 and 
        use threads;

Jenda
P.S.: Your perl is aparently 5.6.1.
You can get the version of perl with
        perl -v
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to