This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[ID 19990816.006] small patch to perlobj.pod from 5.005_03
[perl5.git] / pod / perlobj.pod
index 21073a7..fa82641 100644 (file)
@@ -339,7 +339,7 @@ confusing precedence problems, as in these next two lines:
 Those actually parse as the very surprising:
 
     $obj->move->{FIELD};                # Well, lookee here
-    $ary->move->[$i];                   # Didn't expect this one, eh?
+    $ary->move([$i]);                   # Didn't expect this one, eh?
 
 Rather than what you might have expected: