In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/5a0c7e9d45ff6da450098635b233527990112d8a?hp=68cd360812f9eaa2d34c45c501e2fef87c44ccde>
- Log ----------------------------------------------------------------- commit 5a0c7e9d45ff6da450098635b233527990112d8a Author: Paul Johnson <[email protected]> Date: Sun Apr 29 20:27:37 2012 +0200 Correct variable name in example. As noticed by Lawrence Statton <[email protected]> ----------------------------------------------------------------------- Summary of changes: pod/perlretut.pod | 6 +++--- 1 files 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<//g> modifier is the C<\G> anchor. The C<\G> anchor matches at the point where the previous C<//g> match left -- Perl5 Master Repository
