summaryrefslogtreecommitdiff
path: root/pod/perlre.pod
diff options
context:
space:
mode:
authorSébastien Aperghis-Tramoni <sebastien@aperghis.net>2006-06-29 19:46:57 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-06-29 15:53:43 +0000
commit1031e5dba2bc40203b5942f84d3d2bc335470dba (patch)
tree4584376a28ef642370e75ceb2d0c0f2b0d2848f4 /pod/perlre.pod
parentc418a2d4058f874e3e9e0ab21b18e09562439579 (diff)
downloadperl-1031e5dba2bc40203b5942f84d3d2bc335470dba.tar.gz
Small precision about \Q \E inside m//x
Message-ID: <1151596017.44a3f5f105205@imp1-g19.free.fr> p4raw-id: //depot/perl@28450
Diffstat (limited to 'pod/perlre.pod')
-rw-r--r--pod/perlre.pod13
1 files changed, 7 insertions, 6 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod
index 04c92d5ea2..c6dd30f1d4 100644
--- a/pod/perlre.pod
+++ b/pod/perlre.pod
@@ -71,12 +71,13 @@ character is also treated as a metacharacter introducing a comment,
just as in ordinary Perl code. This also means that if you want real
whitespace or C<#> characters in the pattern (outside a character
class, where they are unaffected by C</x>), that you'll either have to
-escape them or encode them using octal or hex escapes. Taken together,
-these features go a long way towards making Perl's regular expressions
-more readable. Note that you have to be careful not to include the
-pattern delimiter in the comment--perl has no way of knowing you did
-not intend to close the pattern early. See the C-comment deletion code
-in L<perlop>.
+escape them (using blackslashes or C<\Q \E>) or encode them using octal
+or hex escapes. Taken together, these features go a long way towards
+making Perl's regular expressions more readable. Note that you have to
+be careful not to include the pattern delimiter in the comment--perl has
+no way of knowing you did not intend to close the pattern early. See
+the C-comment deletion code in L<perlop>. Also note that anything inside
+a C<\Q...\E> stays unaffected by C</x>.
X</x>
=head2 Regular Expressions