This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Mention that a method can be thought of as a verb for an object
authorDave Rolsky <autarch@urth.org>
Wed, 14 Sep 2011 15:39:21 +0000 (10:39 -0500)
committerDave Rolsky <autarch@urth.org>
Wed, 14 Sep 2011 15:39:21 +0000 (10:39 -0500)
pod/perlootut.pod

index e25bb77..f42dec7 100644 (file)
@@ -135,7 +135,8 @@ their constructor:
 
 You already learned that a B<method> is a subroutine that operates on
 an object. You can think of a method as the things that an object can
-I<do>.
+I<do>. If an object is a noun, then methods are its verbs (save, print,
+open).
 
 In Perl, methods are simply subroutines that live in a class's package.
 Methods are always written to receive the object as their first