From: Rafael Garcia-Suarez Date: Wed, 27 Mar 2002 22:35:03 +0000 (+0100) Subject: [DOC PATCH] Re: [ID 20020324.002] \G bug on zero-length matches X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fe4b3f2217b0673e1a826e8cf7a98a9a41beb70b;p=p5sagit%2Fp5-mst-13.2.git [DOC PATCH] Re: [ID 20020324.002] \G bug on zero-length matches Message-ID: <20020327223503.A678@rafael> p4raw-id: //depot/perl@15553 --- diff --git a/pod/perlop.pod b/pod/perlop.pod index 944772b..e842317 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -895,7 +895,8 @@ C, if any, left off. Without the C modifier, the C<\G> assertion still anchors at pos(), but the match is of course only attempted once. Using C<\G> without C on a target string that has not previously had a C match applied to it is the same as using the C<\A> assertion to match -the beginning of the string. +the beginning of the string. Note also that, currently, C<\G> is only +properly supported when anchored at the very beginning of the pattern. Examples: