Help for this page
my $obj = MyClass->new(); # what if it returns undef on error? if ($obj->can('top') # dies!
# Instead of: if (UNIVERSAL::isa($obj, 'MyClass') # do this: ... # do this: if (blessed $obj && $obj->can('top') && blessed $obj->top && $obj->top->can('bottom'))