summaryrefslogtreecommitdiff
path: root/pod/perlre.pod
diff options
context:
space:
mode:
authorKarl Williamson <khw@khw-desktop.(none)>2010-07-15 11:40:14 -0600
committerDavid Golden <dagolden@cpan.org>2010-07-17 21:50:48 -0400
commitdc0d9c48f0899df34860778d88daab1e33365e30 (patch)
tree9c442ae92d54048af39269f484b7d1d30cc18b1a /pod/perlre.pod
parentf6993e9e54e2b280f46496a9b43bee752047ce7e (diff)
downloadperl-dc0d9c48f0899df34860778d88daab1e33365e30.tar.gz
perlre.pod: Nits
Signed-off-by: David Golden <dagolden@cpan.org>
Diffstat (limited to 'pod/perlre.pod')
-rw-r--r--pod/perlre.pod11
1 files changed, 5 insertions, 6 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod
index 5af167b820..5ea15a013a 100644
--- a/pod/perlre.pod
+++ b/pod/perlre.pod
@@ -230,9 +230,8 @@ also work:
\a alarm (bell) (BEL)
\e escape (think troff) (ESC)
\033 octal char (example: ESC)
- \x1B hex char (example: ESC)
- \x{263a} long hex char (example: Unicode SMILEY)
\cK control char (example: VT)
+ \x{}, \x00 character whose ordinal is the given hexadecimal number
\N{name} named Unicode character
\N{U+263D} Unicode character (example: FIRST QUARTER MOON)
\l lowercase next char (think vi)
@@ -490,8 +489,8 @@ Examples:
"aa" =~ /${b}/; # True
"aa0" =~ /${a}0/; # False!
"aa0" =~ /${b}0/; # True
- "aa\x8" =~ /${a}0/; # True!
- "aa\x8" =~ /${b}0/; # False
+ "aa\x08" =~ /${a}0/; # True!
+ "aa\x08" =~ /${b}0/; # False
Several special variables also refer back to portions of the previous
match. C<$+> returns whatever the last bracket match matched.
@@ -1759,9 +1758,9 @@ spell out the character sets in full.
Characters may be specified using a metacharacter syntax much like that
used in C: "\n" matches a newline, "\t" a tab, "\r" a carriage return,
"\f" a form feed, etc. More generally, \I<nnn>, where I<nnn> is a string
-of octal digits, matches the character whose coded character set value
+of three octal digits, matches the character whose coded character set value
is I<nnn>. Similarly, \xI<nn>, where I<nn> are hexadecimal digits,
-matches the character whose numeric value is I<nn>. The expression \cI<x>
+matches the character whose ordinal is I<nn>. The expression \cI<x>
matches the character control-I<x>. Finally, the "." metacharacter
matches any character except "\n" (unless you use C</s>).