When mod_perl calls a handler it should be akin to a perl program calling the function "handler" in the referenced package... so I made a simple test case and tried it with parent:
Running t.pl produces:-- t2.pm -- package t2; sub testing2 { print "Testing from t2.pm\n"; } 1; -- t.pm -- package t; use parent t2; sub testing { print "Testing from t.pm\n"; } 1; -- t.pl -- #!/usr/bin/perl use t; t::testing(); t::testing2();
This is the first direction I tried cause it seemed correct but... alas I am missing somethingTesting from t.pm Undefined subroutine &t::testing2 called at ./t.pl line 5.
In reply to Re^2: Transparently inheriting functions from a parent package
by vaewyn
in thread Transparently inheriting functions from a parent package
by vaewyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |