From 5a0c7e9d45ff6da450098635b233527990112d8a Mon Sep 17 00:00:00 2001 From: Paul Johnson Date: Sun, 29 Apr 2012 20:27:37 +0200 Subject: [PATCH] Correct variable name in example. As noticed by Lawrence Statton --- pod/perlretut.pod | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pod/perlretut.pod b/pod/perlretut.pod index d7e0412..a3ff6ad 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 modifier is the C<\G> anchor. The C<\G> anchor matches at the point where the previous C match left -- 2.7.4