On Sun, Jul 17, 2005 at 11:38:05AM +0900, SADAHIRO Tomoyuki wrote:
> Hello,
> 
> \c\ is an only case (afaik) of escape sequence ending with backslash.
> Though perlop explains how to find the end of quoted constructs
> in detail, it may be a trap.
> 
> Regards,
> SADAHIRO Tomoyuki
> 
> diff -ur perl~/pod/perlop.pod perl/pod/perlop.pod
> --- perl~/pod/perlop.pod      Fri Jul 15 18:33:32 2005
> +++ perl/pod/perlop.pod       Sun Jul 17 10:50:41 2005
> @@ -1668,6 +1668,11 @@
>  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 interpleted as a part of C<\/>,
> +and the following C</> is not recognized as 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
> END OF PATCH

I've long considered this a bug.  I'd rather not document it, or
document it explicitly as a bug.  IMO "finding the end" is
inconsistent with later processing, and \c\ should be treated as a
complete character.

Reply via email to