moot has asked for the wisdom of the Perl Monks concerning the following question:
Am I missing something, or is there really no easy way to tell if $foo is blessed other than the unwieldy
and without falling afoul of trying to call $obj->isa where $obj might be unblessed?$is_blessed = ref $obj && UNIVERSAL::isa($obj, 'UNIVERSAL');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: is_object_blessed($foo)
by Limbic~Region (Chancellor) on Jan 20, 2005 at 00:43 UTC | |
by moot (Chaplain) on Jan 20, 2005 at 00:52 UTC | |
|
Re: is_object_blessed($foo)
by revdiablo (Prior) on Jan 20, 2005 at 00:44 UTC | |
|
Re: is_object_blessed($foo)
by borisz (Canon) on Jan 20, 2005 at 00:44 UTC |