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"} ) { ... }
In reply to Re: inheritance and can
by ehdonhon
in thread inheritance and can
by glwtta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |