perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Qasem Sweilem <>
Subject Threads under Apache2 and mod-perl2 problem
Date Sun, 02 Jul 2006 14:39:09 GMT

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';

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message