summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-02-08 09:25:29 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-02-08 09:25:29 +0000
commit580a9fe1f2eadca33b9bfe7700739a00e7d804ca (patch)
tree6452aa606e4f6e39d4ff4ef95361857787242b54 /pod
parentfbbafa6d4d20579293b51de798077b9e8c394e94 (diff)
downloadperl-580a9fe1f2eadca33b9bfe7700739a00e7d804ca.tar.gz
A small precision in the docs for overloaded regexp escapes
(see bug #33906) p4raw-id: //depot/perl@23945
Diffstat (limited to 'pod')
-rw-r--r--pod/perlre.pod2
1 files changed, 2 insertions, 0 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod
index f0d7645353..bc5e7c914d 100644
--- a/pod/perlre.pod
+++ b/pod/perlre.pod
@@ -1282,6 +1282,8 @@ this:
sub invalid { die "/$_[0]/: invalid escape '\\$_[1]'"}
+ # We must also take care of not escaping the legitimate \\Y|
+ # sequence, hence the presence of '\\' in the conversion rules.
my %rules = ( '\\' => '\\\\',
'Y|' => qr/(?=\S)(?<!\S)|(?!\S)(?<=\S)/ );
sub convert {