From d6b8a906624863b16c200b238f05b6668e6fb282 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 31 Mar 2011 10:41:51 -0600 Subject: [PATCH] perlretut: Emphasize difference of /r --- pod/perlretut.pod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pod/perlretut.pod b/pod/perlretut.pod index 5625358..d8ac91f 100644 --- a/pod/perlretut.pod +++ b/pod/perlretut.pod @@ -1726,7 +1726,8 @@ C and the C use C<$_> implicitly. If you don't want C to change your original variable you can use the non-destructive substitute modifier, C. This changes the -behavior so that C returns the final substituted string: +behavior so that C returns the final substituted string +(instead of the number of substitutions): $x = "I like dogs."; $y = $x =~ s/dogs/cats/r; -- 2.7.4