Mention of possible use of a scalar variable on the rhs of an arrow "->"
Steve Peters [Mon, 28 Nov 2005 02:34:49 +0000 (02:34 +0000)]
operator added to close two tickets.

p4raw-id: //depot/perl@26218

pod/perlobj.pod

index ad99627..bcf56a7 100644 (file)
@@ -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>