This is probably a pointless question, but I'm mostly just curious if
there is any way to get this to work.

I've got two modules, Parent.pm and Child.pm.   Parent.pm has a sub
handler in it, and Child.pm has Parent in @ISA.   I can run a little
driver script over these two and call Child::handler and have it execute
Parent::handler, so I know the inheritance is working.

However, if I setup my location directive like this:

<Location /test_child>
SetHandler  perl-script
PerlHandler Child
</Location>

It tells me "Undefined subroutine &Child::handler called".

I'm using Parent & Child in startup.pl, and also doing a use Parent; in
Child.pm for good measure.

Is there any way to get mod_perl to execute the handler in the parent
class automatically?   Am I just completely missing something?



Reply via email to