Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > PERL with Thread.pm

Reply
Thread Tools

PERL with Thread.pm

 
 
Charlie
Guest
Posts: n/a
 
      05-13-2004
Hi folks,
The version of perl that I am using on my company's linux machine is
5.6.1, which does not include Thread.pm. And it happens that I need to
have some perl scripts created on my home PC to be running on that
platform, and those scripts "use Thread".

I was looking for the necessary modules from www.cpan.org to add on
and what I realize is I had to add the whole perl package to have it
included. So here is my question:
1. Is there some "patches" that just has this part included, not the
whole perl install package?
2. If I have to have the whole Perl 5.8.4 or high version installed on
linux, what the minimum installation size going to be? Also any tips
for the installation? I guess if I am going to do it, it would be done
in my home dir, otherwise the requst would take days to finish.
3. If for any reason, I have to use the existing perl, what I might do
to work around, following are the only part of code that uses Thread
in that scripts.
"
.....
use Thread;
my $thread1 = Thread->new(\&func1);
my $thread2 = Thread->new(\&func2);
my $thread3 = Thread->new(\&func3);
$_->join foreach($thread1, $thread2, $thread3);
"

thanks for the tips.



CJ
 
Reply With Quote
 
 
 
 
Jack Challen
Guest
Posts: n/a
 
      05-13-2004
Charlie wrote:
> 1. Is there some "patches" that just has this part included, not the
> whole perl install package?


Not really, it's an option that you'd have to supply when building Perl
yourself from the source code (-DUSETHREADS IIRC). It's not just a matter
of adding a couple of modules.

Some distributions may have taken to building perl with threads enabled -
you should check to see if you've got the latest package of perl available
for your distribution, and if there's a thread-enabled version available.

hope that helps.

jack
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? PerlFAQ Server Perl Misc 0 04-04-2011 10:00 PM
FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? PerlFAQ Server Perl Misc 0 02-27-2011 11:00 PM
FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? PerlFAQ Server Perl Misc 0 02-03-2011 11:00 AM
FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? PerlFAQ Server Perl Misc 0 01-23-2011 05:00 AM
Perl Help - Windows Perl script accessing a Unix perl Script dpackwood Perl 3 09-30-2003 02:56 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57