summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2019-09-16 14:55:01 +1000
committerKarl Williamson <khw@cpan.org>2019-11-18 14:15:54 -0800
commit091db59cc2c472e72fe14421f725785da577c4dc (patch)
tree1adec52f01788496342335973e3173acea47c8f9
parent14e3a03e3634cb97436fbf3cc8dba5269293715e (diff)
downloadperl-091db59cc2c472e72fe14421f725785da577c4dc.tar.gz
document that /c does nothing for s///
Another option would be to go through a deprecation cycle. We can't just remove it, since there might be existing code that has (the non-functional) /c. fixes #17071
-rw-r--r--pod/perlop.pod3
1 files changed, 3 insertions, 0 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index d80d34e287..c4eecd6c79 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -2276,6 +2276,9 @@ to occur that you might want. Here are two common cases:
# expand tabs to 8-column spacing
1 while s/\t+/' ' x (length($&)*8 - length($`)%8)/e;
+X</c>While C<s///> accepts the C</c> flag, it has no effect beyond
+producing a warning if warnings are enabled.
+
=back
=head2 Quote-Like Operators