perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Qasem Sweilem <qa...@alqudsnet.com>
Subject Threads under Apache2 and mod-perl2 problem
Date Sun, 02 Jul 2006 14:39:09 GMT
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 and in the shell.

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

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

Here is 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";
}
---------------------

Is there anything required which I miss?

thanks  in advance
Qasem



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message