summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorPaul Johnson <paul@pjcj.net>2012-04-29 20:27:37 +0200
committerRicardo Signes <rjbs@cpan.org>2012-05-02 22:45:10 -0400
commit5a0c7e9d45ff6da450098635b233527990112d8a (patch)
treefe9d74b8640ca24ba9e016522fb0fd2fa9721eb5 /pod
parent68cd360812f9eaa2d34c45c501e2fef87c44ccde (diff)
downloadperl-5a0c7e9d45ff6da450098635b233527990112d8a.tar.gz
Correct variable name in example.
As noticed by Lawrence Statton <lawrence@cluon.com>
Diffstat (limited to 'pod')
-rw-r--r--pod/perlretut.pod6
1 files changed, 3 insertions, 3 deletions
diff --git a/pod/perlretut.pod b/pod/perlretut.pod
index d7e0412456..a3ff6ad28c 100644
--- a/pod/perlretut.pod
+++ b/pod/perlretut.pod
@@ -1583,9 +1583,9 @@ there are no groupings, a list of matches to the whole regexp. So if
we wanted just the words, we could use
@words = ($x =~ /(\w+)/g); # matches,
- # $word[0] = 'cat'
- # $word[1] = 'dog'
- # $word[2] = 'house'
+ # $words[0] = 'cat'
+ # $words[1] = 'dog'
+ # $words[2] = 'house'
Closely associated with the C<//g> modifier is the C<\G> anchor. The
C<\G> anchor matches at the point where the previous C<//g> match left