From the outside world, I didn't override foo(). I just decorated it a little. You might want to think about that.package Baz; sub foo { # Do something here ... } package Baz::Ok; use base 'Baz'; sub foo { my $self = shift; # Call parent method first! my $rv = $self->SUPER::foo( @_ ); # Log the call somehow return $rv; }
In reply to Re: checking a method is not subclassed
by dragonchild
in thread checking a method is not subclassed
by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |