develooper Front page | perl.perl5.porters | Postings from April 2012

[perl #112686] [PATCH] 50a7035 Correct variable name in example.

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
April 30, 2012 18:09
Subject:
[perl #112686] [PATCH] 50a7035 Correct variable name in example.
Message ID:
rt-3.6.HEAD-4610-1335834567-42.112686-15-0@perl.org
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=112686

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About