Is there a proper way to call a method handler using either push_handlers or
set_handlers? They both appear to call all handler refs just like normal
subs, with no class name passed in. It appears that enclosing the handler in
an anonymous sub is a workaround, but I was wondering if there was a better
solution.

# does not call handler as a method
$r->push_handlers( PerlHandler => \&Apache::Test::handler );

# does call handler as a method
$r->push_handlers( PerlHandler => sub { Apache::Test->handler } );

-Tim

Reply via email to