From: Steve Peters Date: Mon, 28 Nov 2005 02:34:49 +0000 (+0000) Subject: Mention of possible use of a scalar variable on the rhs of an arrow "->" X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d9693f5a0132788a53f1cc1dd4edd090cd2ff151;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/pod/perlobj.pod b/pod/perlobj.pod index ad99627..bcf56a7 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 X X