You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Wenzhong Tang <Ta...@appliant.com> on 2001/02/02 03:43:00 UTC

RE: Prototype mismatch in Apache::PerlRun line 343

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 PerlRun.pm, the "Prototype mismatch"
problem still occurs.  When examining the code, it happened to be that line
344 of the new PerlRun.pm is:
    *{$fullname} = eval "sub ($p) {}";
instead of 
    eval "*{\$fullname} = sub ($p) {}";
Apparently, the line in PerlRun.pm (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
tang@appliant.com


-----Original Message-----
From: Doug MacEachern [mailto:dougm@covalent.net]
Sent: Monday, January 29, 2001 2:03 PM
To: Wenzhong Tang
Cc: modperl@apache.org
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.