This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Added missing variable name in example code
authorIan Goodacre <Ian.Goodacre@xtra.co.nz>
Sat, 23 Oct 2010 00:38:52 +0000 (13:38 +1300)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 23 Oct 2010 06:17:51 +0000 (23:17 -0700)
pod/perltrap.pod

index 3123436..877dc08 100644 (file)
@@ -665,7 +665,7 @@ are to used around the name.
     # perl4 prints: 2
     # perl5 fails with syntax error
 
-    @ = (1..3);
+    @a = (1..3);
     print "$#{a}";
 
     # perl4 prints: {a}