Update: But in direct answer to your question, this (surprisingly) seems to work:package MyPackage; use base "Whatever"; our $can_foo; BEGIN { $can_foo = 1 if MyPackage->can("foo"); } sub foo { 'Whee!' } sub check { return $can_foo; }
MyPackage->can("SUPER::foo")
In reply to Re: Detecting Overridden Methods
by sfink
in thread Detecting Overridden Methods
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |