Perl Monk, Perl Meditation | |
PerlMonks |
Re^3: isa() on any scalarby gam3 (Curate) |
on Jun 11, 2005 at 02:15 UTC ( [id://465738]=note: print w/replies, xml ) | Need Help?? |
No don't do this either. An exception should only be used to catch exceptional events. Since it seems that $value is just as likely not to be a 'Node' as it is to be one you should not use an exception to test it.
-- gam3 A picture is worth a thousand words, but takes 200K.
In Section
Seekers of Perl Wisdom
|
|