> MyMod::Apache::Multiplex Matched /test/ to MyMod::Apache::Test
> (MyMod::Apache::Test) for /
> mod_perl_push_handlers: Not a subroutine name or CODE reference! at
> /usr/local/lib/perl//MyMod/Apache/Multiplex.pm line 101.
> They match
>  (MyMod::Apache::Test) = (MyMod::Apache::Test)

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.


-- 
( Marcin Kasperski   | You have the right to peace, fun, and productive      )
( http://www.mk.w.pl |            and enjoyable work. (Beck)                 )
(----------------------------------------------------------------------------)
( Nie gub zgłoszeń błędów: http://www.mk.w.pl/narzedzia/narzedzia_bugewid    )

Reply via email to