Very small tweak to perlobj in dereferencing method call example
authorDave Rolsky <autarch@urth.org>
Mon, 18 Feb 2013 01:37:24 +0000 (19:37 -0600)
committerDave Rolsky <autarch@urth.org>
Mon, 18 Feb 2013 01:37:24 +0000 (19:37 -0600)
pod/perlobj.pod

index bb0538a..448fcfe 100644 (file)
@@ -632,7 +632,7 @@ call. That's a mouthful, so let's look at some code:
   $file->${ \'save' };
   $file->${ returns_scalar_ref() };
   $file->${ \( returns_scalar() ) };
-  $file->${ returns_sub_ref() };
+  $file->${ returns_ref_to_sub_ref() };
 
 This works if the dereference produces a string I<or> a subroutine
 reference.