perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin Wetherbee <...@denterprises.org>
Subject Re: Internal Server Error
Date Wed, 22 Aug 2007 01:49:28 GMT
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