This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78288b8
)
Note this doesn't work: $re = "\\N{...}"; /$re/
author
Karl Williamson
<khw@khw-desktop.(none)>
Sun, 28 Feb 2010 15:48:33 +0000
(08:48 -0700)
committer
Jesse Vincent
<jesse@bestpractical.com>
Sun, 28 Feb 2010 20:32:36 +0000
(10:32 -1000)
pod/perldiag.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perldiag.pod
b/pod/perldiag.pod
index
e1f02db
..
fbbf907
100644
(file)
--- a/
pod/perldiag.pod
+++ b/
pod/perldiag.pod
@@
-2645,12
+2645,13
@@
specialness: it matches almost everything, which is probably not what you want.
(F) When compiling a regex pattern, an unresolved named character or sequence
was encountered. This can happen in any of several ways that bypass the lexer,
-such as using single-quotish context:
+such as using single-quotish context
, or an extra backslash in double quotish
:
$re = '\N{SPACE}'; # Wrong!
+ $re = "\\N{SPACE}"; # Wrong!
/$re/;
-Instead, use double-quotes:
+Instead, use double-quotes
with a single backslash
:
$re = "\N{SPACE}"; # ok
/$re/;