diff options
author | Dave Rolsky <autarch@urth.org> | 2011-09-14 10:39:21 -0500 |
---|---|---|
committer | Dave Rolsky <autarch@urth.org> | 2011-09-14 10:39:21 -0500 |
commit | 4c054e89890d91656725bab253a2ebd731e419f9 (patch) | |
tree | 1806d3e95305ff6b05a219740642025eb20c2c3c /pod/perlootut.pod | |
parent | 3282575c010a0e671780f478c9f8d99332e2d3f4 (diff) | |
download | perl-4c054e89890d91656725bab253a2ebd731e419f9.tar.gz |
Mention that a method can be thought of as a verb for an object
Diffstat (limited to 'pod/perlootut.pod')
-rw-r--r-- | pod/perlootut.pod | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pod/perlootut.pod b/pod/perlootut.pod index e25bb77013..f42dec79a8 100644 --- a/pod/perlootut.pod +++ b/pod/perlootut.pod @@ -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 |