> > mod_perl_push_handlers: Not a subroutine name or CODE reference!
>
> I have observed similar problem myself. I got the same error when I
> wrote in my startup.pl
> 
> Apache->push_handlers("PerlChildInitHandler",
>                     \&MyApp::Main::on_child_init);
> 
> when I replaced it with 
> 
> Apache->push_handlers("PerlChildInitHandler",
>                     sub { MyApp::Main::on_child_init(); });
> 
> it works as expected.

It is probably worth noting, that in my opinion the first syntax
should work and there is something wrong in mod_perl code...

Is it something 'well known' or 'by design'?

Reply via email to