This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
822ebcc
)
[DOC PATCH] Re: [ID 20020324.002] \G bug on zero-length matches
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Wed, 27 Mar 2002 22:35:03 +0000
(23:35 +0100)
committer
Jarkko 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
patch
|
blob
|
blame
|
history
diff --git
a/pod/perlop.pod
b/pod/perlop.pod
index
944772b
..
e842317
100644
(file)
--- a/
pod/perlop.pod
+++ b/
pod/perlop.pod
@@
-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: