perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jordan McLain" <jordan.mcl...@gmail.com>
Subject Re: Internal Server Error
Date Wed, 22 Aug 2007 02:52:55 GMT
I might have solved my own problem...
I was calling:

PerlHandler Package::Name

instead of:

PerlHandler Package::Name->handler

although I am still confused as to why the first was working...

Jordan

On 8/21/07, Colin Wetherbee <cww@denterprises.org> wrote:
>
> Jeff Pang wrote:
> > Try change the codes to:
> >
> > sub handler {
> >
> >     my $r = shift;
> >     ...
>
> If his handler is called as a method, $class is an appropriate first
> variable to shift out of @_.  Using ($class, $r) = @_ is a perfectly
> legitimate way of taking care of that.
>
> Colin
>

Mime
View raw message