How do you know in general whether the object or class has its own can though? (Easy answer, but not one you'll like.)
I prefer to use Scalar::Util's blessed to see if I can invoke operations on an object, though wrapping the call in an eval block is safer if you expect class names as well.
In reply to Re^4: goto superclass method
by chromatic
in thread goto superclass method
by avarus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |