[Israel.pm] Threads under mod perl

Qasem Sweilem qasem2000 at hotmail.com
Sun Jul 2 18:36:48 EEST 2006


Hi,

I have a problem running threads under mod perl. I always get a "zero sized reply" in the browser.

It works fine under normal cgi.

Note: I have perl 5.8.6 and Apache2.0 with mod-perl2.0.2

when typing: perl -V:useithreads -V:usemultiplicity
I get: useithreads='define';
         usemultiplicity='define';

Here the simple test script im trying to run:

--------------------
use threads;

$thr = threads->new(\&sub1);
@ReturnData = $thr->join;

print "Thread returned @ReturnData \n";

sub sub1 {
	return "Fifty-six", "foo", 2;
}
---------------------

Is there anything required which I miss?

Thanks in advance
Qasem

_________________________________________________________________
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d



More information about the Perl mailing list