This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlre: Clarify /x eol can't be escaped
authorKarl Williamson <khw@cpan.org>
Mon, 19 May 2014 22:36:33 +0000 (16:36 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 30 May 2014 01:28:40 +0000 (19:28 -0600)
pod/perlre.pod

index d8c9059..5fffed4 100644 (file)
@@ -150,6 +150,8 @@ whitespace or C<#> characters in the pattern (outside a bracketed character
 class, which is unaffected by C</x>), then you'll either have to
 escape them (using backslashes or C<\Q...\E>) or encode them using octal,
 hex, or C<\N{}> escapes.
+It is ineffective to try to continue a comment onto the next line by
+escaping the C<\n> with a backslash or C<\Q>.
 
 You can use L</(?#text)> to create a comment that ends earlier than the
 end of the current line, but C<text> also can't contain the closing