Perl-Sensitive Sunglasses | |
PerlMonks |
Re^4: isa() on any scalarby chromatic (Archbishop) |
on Jun 11, 2005 at 08:35 UTC ( [id://465771]=note: print w/replies, xml ) | Need Help?? |
As I mentioned, if $value is not a valid invocant, it is an exceptional case. I'm not aware of any other idiom that respects potentially-overridden isa() methods and handles potentially invalid invocants in one statement. If you know one, please share. Scalar::Util's blessed() is pretty good, but that technique disallows calling isa() as a class method. Sometimes that's good. Sometimes it's not.
In Section
Seekers of Perl Wisdom
|
|