But if Foo inherits from Bar and I want to know if an object (of class
Foo) is of class Bar ... is there a convenient way to do that?
> But if Foo inherits from Bar and I want to know if an object (of class
> Foo) is of class Bar ... is there a convenient way to do that?
$obj->isa('Bar')
Read 'perldoc perlobj' looke for the heading 'Default UNIVERSAL
metods' and read 'perldoc UNIVERSAL'
//Makholm