summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorM.J.T. Guy <mjtg@cus.cam.ac.uk>1997-09-05 00:00:00 +0000
committerTim Bunce <Tim.Bunce@ig.co.uk>1997-09-05 00:00:00 +1200
commitb7e30b65e77616e7336a6cda54d9c3d5935d0cfc (patch)
tree9f7ad25a5719a6609156a8b4807fac71fceae3c2 /pod
parent3b93f881ad0c1760299956b68c3750a683e7952b (diff)
downloadperl-b7e30b65e77616e7336a6cda54d9c3d5935d0cfc.tar.gz
perlop pod inconsistent in presentation of regexp options
ts <decoux@moulon.inra.fr> wrote > man perlop : > > entry in the perlfunc manpage.) A failed match > normally resets the search position to the beginning > of the string, but you can avoid that by adding the > "c" modifier (e.g. m//gc). Modifying the target > string also resets the search position. Doh! Didn't see that. My excuse is that a search for "/c" doesn't find it. And since all other modifiers are referred to as C</g> etc, I submit the following micropatch. Credited: Hans Mulder <hansm@icgned.nl> Credited: John Redford <jmr@whirlwind.fmr.com> p5p-msgid: E0wwnqc-00057s-00@ursa.cus.cam.ac.uk
Diffstat (limited to 'pod')
-rw-r--r--pod/perlop.pod2
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index 2709a9eaa2..56859029bf 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -702,7 +702,7 @@ each time it matches, and FALSE when it eventually runs out of matches.
the search at that point. You can actually find the current match
position of a string or set it using the pos() function; see
L<perlfunc/pos>.) A failed match normally resets the search position to
-the beginning of the string, but you can avoid that by adding the "c"
+the beginning of the string, but you can avoid that by adding the C</c>
modifier (e.g. C<m//gc>). Modifying the target string also resets the
search position.