in reply to General module question
Just make sure s1() and s2() aren't shifting $self (or whatever you call it) off of @_ first, and they'll act like built in functions. That may be closer to the behavior you're looking for anyway, since they don't really 'belong to' any of the packages, but are used by them all.package Foo::Bar; sub s1 {} sub s2 {} ... package Foo::Bar::Subclass1; use base Foo::Bar; s1(); ... package Foo::Bar::Subclass2; use base Foo::Bar; s1(); s2();
|
|---|