Perl for Newbies - Part 3 - Modules and ObjectsObjects in PerlObject Utility Functions - isa() and can()

4.4. Object Utility Functions - isa() and can()

isa() is a special method that can be used on every object. When invoked with the name of a package as an argument, it returns whether or not this object inherits from this package (directly or indirectly).

can() is a method that determines if an object can execute the method by the name given to it as argument.

Written by Shlomi Fish