summaryrefslogtreecommitdiff
path: root/pod/perlobj.pod
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-11-28 02:34:49 +0000
committerSteve Peters <steve@fisharerojo.org>2005-11-28 02:34:49 +0000
commitd9693f5a0132788a53f1cc1dd4edd090cd2ff151 (patch)
tree7a332e64366e79537a4d3e7d2651cbe4acdc848f /pod/perlobj.pod
parentd491518e36bdf6ee0e29d7043e72b5f41100ece6 (diff)
downloadperl-d9693f5a0132788a53f1cc1dd4edd090cd2ff151.tar.gz
Mention of possible use of a scalar variable on the rhs of an arrow "->"
operator added to close two tickets. p4raw-id: //depot/perl@26218
Diffstat (limited to 'pod/perlobj.pod')
-rw-r--r--pod/perlobj.pod4
1 files changed, 4 insertions, 0 deletions
diff --git a/pod/perlobj.pod b/pod/perlobj.pod
index ad99627cb2..bcf56a7a1c 100644
--- a/pod/perlobj.pod
+++ b/pod/perlobj.pod
@@ -308,6 +308,10 @@ and so is the following:
my $fred = (reverse "rettirC")->find(reverse "derF");
+The right side of the arrow typically is the method name, but a simple
+scalar variable containing either the method name or a subroutine
+reference can also be used.
+
=head2 Indirect Object Syntax
X<indirect object syntax> X<invocation, indirect> X<indirect>