Adam Kennedy wrote: >> IT SHOULD NOT BE THIS COMPLICATED TO IDENTIFY THE HERITAGE OF AN OBJECT! > > use Params::Util '_INSTANCE'; > > if ( _INSTANCE($obj, 'Whatever') ) { > > }
Oh good, depend on another module to implement a basic language feature. (I appreciate your suggestion but I'm LAMENTING here! :P ) PS Shouldn't that be something like _is_instance_of() ?