perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Pang <pa...@earthlink.net>
Subject Re: Internal Server Error
Date Wed, 22 Aug 2007 03:11:48 GMT


-----Original Message-----
>From: Jordan McLain <jordan.mclain@gmail.com>
>Sent: Aug 22, 2007 10:52 AM
>To: modperl@perl.apache.org
>Subject: Re: Internal Server Error
>
>I might have solved my own problem...
>I was calling:
>
>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.

Am I right?
btw,I always used the first config.

--
Jeff Pang - pangj@earthlink.net
http://home.arcor.de/jeffpang/

Mime
View raw message