perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Pang" <rww...@gmail.com>
Subject Re: Internal Server Error
Date Fri, 24 Aug 2007 03:27:40 GMT
2007/8/24, Perrin Harkins <perrin@elem.com>:
> On 8/21/07, Jeff Pang <pangj@earthlink.net> wrote:
> > >PerlHandler Package::Name
> > >
> > >instead of:
> > >
> > >PerlHandler Package::Name->handler
> > >
> >
> > So on the first case,we need to write the handler as
> > sub handler { my $r = shift; ...}
> > because Apache may call the function directly as Package::Name::handler.
> >
> > on the second case,we write handler as,
> > sub handler { my $class = shift; my $r = shift; ... }
> > because '->' is a method calling.
>
> For method handlers, you also have to declare it differently.
>
> In mod_perl 1:
> sub handler ($$) {
>

why it need prototype in mp1's method handler?

Mime
View raw message