I am using objects of class T and objects of other classes that inherit from T. Somewhere in my code I need to check if an object is of class T or of any other class that inherits from T. The following if( ref $obj eq 'T' ) (obviously) works only for objects of class T but not for objects blessed to other classes that