in reply to inheritance and can

Does My::Foo::Bar implement method "a_method"?

if ( defined &{My::Foo::Bar::a_method} ) { ... }

Does generic package $x implement "a_method?"

no strict "refs"; if ( defined &{"${x}::a_method"} ) { ... }