in reply to OO design: abstract class or can()?
For example to avoid unnecessary or invalid processing around the method call:
if ($myobj->can('do_something')) { my $input = do_something_before(); my $result = $myobj->do_something($input); do_something_after($result); }
|
|---|