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:
6728836
)
perldiag: Add missing regexp delims
author
Father Chrysostomos
<sprout@cpan.org>
Thu, 28 Jun 2012 04:32:08 +0000
(21:32 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Thu, 28 Jun 2012 23:40:09 +0000
(16:40 -0700)
pod/perldiag.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perldiag.pod
b/pod/perldiag.pod
index
d18279f
..
f686174
100644
(file)
--- a/
pod/perldiag.pod
+++ b/
pod/perldiag.pod
@@
-1449,13
+1449,13
@@
will match.
This may be counterintuitive at times, as both these fail:
This may be counterintuitive at times, as both these fail:
- chr(0x110000) =~
\p{ASCII_Hex_Digit=True}
# Fails.
- chr(0x110000) =~
\p{ASCII_Hex_Digit=False}
# Also fails!
+ chr(0x110000) =~
/\p{ASCII_Hex_Digit=True}/
# Fails.
+ chr(0x110000) =~
/\p{ASCII_Hex_Digit=False}/
# Also fails!
and both these succeed:
and both these succeed:
- chr(0x110000) =~
\P{ASCII_Hex_Digit=True}
# Succeeds.
- chr(0x110000) =~
\P{ASCII_Hex_Digit=False}
# Also succeeds!
+ chr(0x110000) =~
/\P{ASCII_Hex_Digit=True}/
# Succeeds.
+ chr(0x110000) =~
/\P{ASCII_Hex_Digit=False}/
# Also succeeds!
=item %s: Command not found
=item %s: Command not found