summaryrefslogtreecommitdiff
path: root/pod/perltrap.pod
diff options
context:
space:
mode:
authorIan Goodacre <Ian.Goodacre@xtra.co.nz>2010-10-23 13:38:52 +1300
committerFather Chrysostomos <sprout@cpan.org>2010-10-22 23:17:51 -0700
commit5ad172142bcdae876148c9d21f887d2361cf2083 (patch)
tree1f0b2fb6b54fda91d4b1f9ede5a1e683b11ac676 /pod/perltrap.pod
parent4a46fe99d0b8e1b85f7c17c5c73894e520adbf9e (diff)
downloadperl-5ad172142bcdae876148c9d21f887d2361cf2083.tar.gz
Added missing variable name in example code
Diffstat (limited to 'pod/perltrap.pod')
-rw-r--r--pod/perltrap.pod2
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perltrap.pod b/pod/perltrap.pod
index 31234369c0..877dc08446 100644
--- a/pod/perltrap.pod
+++ b/pod/perltrap.pod
@@ -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}