in reply to Re: Do not use UNIVERSAL::isa this way; but why?
in thread Do not use UNIVERSAL::isa this way; but why?
because if $object is defined but not blessed...$is_my_class = defined($object) && $object->isa('My::Class');
although normally (and I don't know why) I try to avoid 'eval'.$is_my_class = eval { $fd->isa('My::Class') };
|
|---|