This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[DOC PATCH] Re: [ID 20020324.002] \G bug on zero-length matches
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Wed, 27 Mar 2002 22:35:03 +0000 (23:35 +0100)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 27 Mar 2002 21:08:03 +0000 (21:08 +0000)
Message-ID: <20020327223503.A678@rafael>

p4raw-id: //depot/perl@15553

pod/perlop.pod

index 944772b..e842317 100644 (file)
@@ -895,7 +895,8 @@ C<m//g>, if any, left off.  Without the C</g> modifier, the C<\G> assertion
 still anchors at pos(), but the match is of course only attempted once.
 Using C<\G> without C</g> on a target string that has not previously had a
 C</g> 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: