summaryrefslogtreecommitdiff
path: root/pod/perlrequick.pod
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-02-16 19:30:08 -0700
committerKarl Williamson <khw@cpan.org>2017-02-20 09:08:54 -0700
commitf1dc5bb2995ecccb5fa0346ca80f01f09aaa3e9d (patch)
treeafd9d8fdb26794366402e77cf9ac8a2dc2b74f4b /pod/perlrequick.pod
parent52b4b0e0361aa3b508faa5976f08af4626cd49ae (diff)
downloadperl-f1dc5bb2995ecccb5fa0346ca80f01f09aaa3e9d.tar.gz
Pods: Standardize on one pattern mod style
There were about 40 cases in pods where //m is used to represent the pattern modifier 'm', but nearly 400 where /m is used. Convert to the most common representation.
Diffstat (limited to 'pod/perlrequick.pod')
-rw-r--r--pod/perlrequick.pod8
1 files changed, 4 insertions, 4 deletions
diff --git a/pod/perlrequick.pod b/pod/perlrequick.pod
index 3cda44ab2d..5832cfa359 100644
--- a/pod/perlrequick.pod
+++ b/pod/perlrequick.pod
@@ -381,9 +381,9 @@ no string left to it, so it matches 0 times.
There are a few more things you might want to know about matching
operators.
-The global modifier C<//g> allows the matching operator to match
+The global modifier C</g> allows the matching operator to match
within a string as many times as possible. In scalar context,
-successive matches against a string will have C<//g> jump from match
+successive matches against a string will have C</g> jump from match
to match, keeping track of position in the string as it goes along.
You can get or set the position with the C<pos()> function.
For example,
@@ -401,9 +401,9 @@ prints
A failed match or changing the target string resets the position. If
you don't want the position reset after failure to match, add the
-C<//c>, as in C</regex/gc>.
+C</c>, as in C</regex/gc>.
-In list context, C<//g> returns a list of matched groupings, or if
+In list context, C</g> returns a list of matched groupings, or if
there are no groupings, a list of matches to the whole regex. So
@words = ($x =~ /(\w+)/g); # matches,