Think about Loose Coupling | |
PerlMonks |
Re: Re: Re: Re: Re: has it been blessed?by dragonchild (Archbishop) |
on Mar 07, 2002 at 20:44 UTC ( [id://150122]=note: print w/replies, xml ) | Need Help?? |
if (UNIVERSAL::isa($obj, 'UNIVERSAL')) { is more than enough. If it's not a reference, UNIVERSAL::isa() will return undef. Don't bother doing a check twice.
------ Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
In Section
Seekers of Perl Wisdom
|
|