A small precision in the docs for overloaded regexp escapes
[p5sagit/p5-mst-13.2.git] / pod / perlre.pod
index f0d7645..bc5e7c9 100644 (file)
@@ -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 {