This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlop: why \c\ cannot be placed just before the terminating delimiter
authorSADAHIRO Tomoyuki <BQW10602@nifty.com>
Sun, 17 Jul 2005 11:38:05 +0000 (20:38 +0900)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 18 Jul 2005 08:52:25 +0000 (08:52 +0000)
Message-Id: <20050717112557.5921.BQW10602@nifty.com>

p4raw-id: //depot/perl@25165

pod/perlop.pod

index f7ff074..ba2ff9f 100644 (file)
@@ -1668,6 +1668,11 @@ Because the slash that terminated C<m//> was followed by a C<SPACE>,
 the example above is not C<m//x>, but rather C<m//> with no C</x>
 modifier.  So the embedded C<#> is interpreted as a literal C<#>.
 
+Also no attention is paid to C<\c\> during this search.
+Thus the second C<\> in C<qq/\c\/> is interpreted as a part of C<\/>,
+and the following C</> is not recognized as a delimiter.
+Instead, use C<\034> or C<\x1c> at the end of quoted constructs.
+
 =item Removal of backslashes before delimiters
 
 During the second pass, text between the starting and ending