CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Please Help Me with this Thread Question!!!

 



czerny599
Deleted

Sep 19, 2000, 11:59 AM

Post #1 of 2 (294 views)
Please Help Me with this Thread Question!!! Can't Post

I am trying to do thread in Perl and get error message:
"No thread in this perl at line 2."
anybody knows why?
here is the code:

use Thread;
$thr = Thread->new (\&f1);
sub f1
{
print "test";
}

Thanks in advance for help.


Kanji
User / Moderator

Sep 23, 2000, 7:30 PM

Post #2 of 2 (294 views)
Re: Please Help Me with this Thread Question!!! [In reply to] Can't Post

Your version of perl was not compiled with threads enabled. Read the perl docs on how to compile a new version with threads enabled.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives