On Sun Apr 29 11:35:21 2012, paul@pjcj.net wrote: > > This is a bug report for perl from paul@pjcj.net, > generated with the help of perlbug 1.39 running under perl 5.14.2. > [snip] > > 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 > > --------------1.7.5.4-- > Patch looks good to me. --- via perlbug: queue: perl5 status: new https://rt.perl.org:443/rt3/Ticket/Display.html?id=112686Thread Previous | Thread Next