[Catalyst] Catalyst::Engine problem

Kiki kixx.tm at gmail.com
Tue Apr 12 17:28:02 CEST 2005


> I guess
>
>     sub handler {
>         my ( $class, $r ) = @_;
>
> should be
>
>    sub handler ($$) {
>        my ( $class, $r ) = @_;
>
> in Engine.pm

That is the correct method for mod_perl 1. For mod_perl 2 the correct
sub declaration is:

sub handler : method {
       my ( $class, $r ) = @_;

HTH,
Kiki



More information about the Catalyst mailing list