perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wenzhong Tang <>
Subject RE: Prototype mismatch in Apache::PerlRun line 343
Date Fri, 02 Feb 2001 02:43:00 GMT
Hi Doug,

Just installed Apache 1.3.7 and mod_perl 1.25 on my Linux box.  To my
surprise, when I ran my scripts using, the "Prototype mismatch"
problem still occurs.  When examining the code, it happened to be that line
344 of the new is:
    *{$fullname} = eval "sub ($p) {}";
instead of 
    eval "*{\$fullname} = sub ($p) {}";
Apparently, the line in (mod_perl 1.25) is not doing what it
should do, which is replacing the sub that $fullname points to with a empty
sub with correct prototype.  Is there anything I am missing here?

Wenzhong Tang

-----Original Message-----
From: Doug MacEachern []
Sent: Monday, January 29, 2001 2:03 PM
To: Wenzhong Tang
Subject: RE: Prototype mismatch in Apache::PerlRun line 343

On Fri, 26 Jan 2001, Wenzhong Tang wrote:

> Unfortunately the following line doesn't work:
>     eval "*{\$fullname}($p) = sub {}";
> It probably should be:
>     eval "*{\$fullname} = sub ($p) {}";
> The latter works on my Linux and Solaris tests.

right.  thanks, applied.

View raw message