in reply to Do not use UNIVERSAL::isa this way; but why?
since I used to write$is_my_class = defined($object) && $object->isa('My::Class');
or$is_my_class = defined($object) && $UNNIVERSAL::isa($object, 'My::Clas +s');
to preserve my keyboard! ;)$is_my_class = eval { $fd->isa('My::Class') };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Do not use UNIVERSAL::isa this way; but why?
by klekker (Pilgrim) on Dec 11, 2008 at 08:32 UTC |