Method A code bit defined in such a way as to relate to a specific instance of an object. Generally, methods read from or write to the internal data of an object. In Perl, a method differs from a function or subroutine only in the fact that, when called correctly, it receives a reference to the object. A new method definition is introduced using the "sub" keyword.