in reply to Re^3: goto superclass method
in thread goto superclass method
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: goto superclass method
by Ovid (Cardinal) on Dec 22, 2004 at 22:19 UTC | |
by Aristotle (Chancellor) on Dec 22, 2004 at 22:37 UTC |
In Section
Seekers of Perl Wisdom