summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-02-19 20:17:16 -0700
committerKarl Williamson <public@khwilliamson.com>2011-02-19 20:18:50 -0700
commit679563bb154a41b95004965fabed4c296a2cb435 (patch)
treeb579da3f1af5d709670c98812d4500c6670e999e
parent501ab549abec3d696d78c9d5348cdf156c647fe2 (diff)
downloadperl-679563bb154a41b95004965fabed4c296a2cb435.tar.gz
perlop.pod: Update to account for /r
-rw-r--r--pod/perlop.pod3
1 files changed, 2 insertions, 1 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index 5fd835bf3c..79f608bf20 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -1570,7 +1570,8 @@ with the replacement text and returns the number of substitutions
made. Otherwise it returns false (specifically, the empty string).
If the C</r> (non-destructive) option is used then it will perform the
-substitution on a copy of the string and return the copy whether or not a
+substitution on a copy of the string and instead of returning the
+number of substitutions, it returns the copy whether or not a
substitution occurred. The original string will always remain unchanged in
this case. The copy will always be a plain string, even if the input is an
object or a tied variable.