diff options
author | David Golden <dagolden@cpan.org> | 2010-11-24 14:51:27 -0500 |
---|---|---|
committer | David Golden <dagolden@cpan.org> | 2010-11-24 14:51:27 -0500 |
commit | 55d389e7b5f7bc71c43841a47bda16dba06579f5 (patch) | |
tree | 511fab85487605a70a2f948025356c3c816735d0 /pod/perlop.pod | |
parent | 725a61d709bfdf8b3423a1409027c3ea9cd0c4f9 (diff) | |
download | perl-55d389e7b5f7bc71c43841a47bda16dba06579f5.tar.gz |
minor amendment to documentation of ?PATTERN?
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r-- | pod/perlop.pod | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod index b31b9bec99..2595e21451 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -1529,6 +1529,8 @@ Here is the output (split into several lines): =item m?PATTERN? X<?> X<operator, match-once> +=item ?PATTERN? + This is just like the C<m/PATTERN/> search, except that it matches only once between calls to the reset() operator. This is a useful optimization when you want to see only the first occurrence of @@ -1549,7 +1551,7 @@ C<?>; with any other delimiter this is the normal C<m//> operator. For historical reasons, the leading C<m> in C<m?PATTERN?> is optional, but the resulting C<?PATTERN?> syntax is deprecated, will warn on usage and may be removed from a future stable release of Perl without -notice. +further notice. =item s/PATTERN/REPLACEMENT/msixpogcer X<substitute> X<substitution> X<replace> X<regexp, replace> |