summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@khw-desktop.(none)>2010-03-27 22:55:41 -0600
committerRafael Garcia-Suarez <rgs@consttype.org>2010-03-28 15:57:17 +0200
commit418e7b041a50a0f6a3f1a824f7b10ba435fb78b1 (patch)
treea375a5010f67576c68e18dee0e1f17b15268af4c
parent58151fe4e3ed9d2e8ad9699d19d2b7d712cb1842 (diff)
downloadperl-418e7b041a50a0f6a3f1a824f7b10ba435fb78b1.tar.gz
Make whitespace a single word [perl #34462]
-rw-r--r--pod/perlrebackslash.pod20
-rw-r--r--pod/perlreref.pod8
2 files changed, 14 insertions, 14 deletions
diff --git a/pod/perlrebackslash.pod b/pod/perlrebackslash.pod
index 48ec0e7a9c..148f6ee887 100644
--- a/pod/perlrebackslash.pod
+++ b/pod/perlrebackslash.pod
@@ -78,8 +78,8 @@ as C<Not in [].>
\f Form feed.
\g{}, \g1 Named, absolute or relative backreference. Not in [].
\G Pos assertion. Not in [].
- \h Character class for horizontal white space.
- \H Character class for non horizontal white space.
+ \h Character class for horizontal whitespace.
+ \H Character class for non horizontal whitespace.
\k{}, \k<>, \k'' Named backreference. Not in [].
\K Keep the stuff left of \K. Not in [].
\l Lowercase next character. Not in [].
@@ -92,13 +92,13 @@ as C<Not in [].>
\Q Quotemeta till \E. Not in [].
\r Return character.
\R Generic new line. Not in [].
- \s Character class for white space.
- \S Character class for non white space.
+ \s Character class for whitespace.
+ \S Character class for non whitespace.
\t Tab character.
\u Titlecase next character. Not in [].
\U Uppercase till \E. Not in [].
- \v Character class for vertical white space.
- \V Character class for non vertical white space.
+ \v Character class for vertical whitespace.
+ \V Character class for non vertical whitespace.
\w Character class for word characters.
\W Character class for non-word characters.
\x{}, \x00 Hexadecimal escape sequence.
@@ -318,13 +318,13 @@ L<perlrecharclass>.
C<\w> is a character class that matches any single I<word> character (letters,
digits, underscore). C<\d> is a character class that matches any decimal digit,
-while the character class C<\s> matches any white space character.
+while the character class C<\s> matches any whitespace character.
New in perl 5.10.0 are the classes C<\h> and C<\v> which match horizontal
-and vertical white space characters.
+and vertical whitespace characters.
The uppercase variants (C<\W>, C<\D>, C<\S>, C<\H>, and C<\V>) are
character classes that match any character that isn't a word character,
-digit, white space, horizontal white space nor vertical white space.
+digit, whitespace, horizontal whitespace nor vertical whitespace.
Mnemonics: I<w>ord, I<d>igit, I<s>pace, I<h>orizontal, I<v>ertical.
@@ -531,7 +531,7 @@ Mnemonic: Complement of I<\n>.
C<\R> matches a I<generic newline>, that is, anything that is considered
a newline by Unicode. This includes all characters matched by C<\v>
-(vertical white space), and the multi character sequence C<"\x0D\x0A">
+(vertical whitespace), and the multi character sequence C<"\x0D\x0A">
(carriage return followed by a line feed, aka the network newline, or
the newline used in Windows text files). C<\R> is equivalent to
C<< (?>\x0D\x0A)|\v) >>. Since C<\R> can match a sequence of more than one
diff --git a/pod/perlreref.pod b/pod/perlreref.pod
index c6cbe752fe..94ac5dcef5 100644
--- a/pod/perlreref.pod
+++ b/pod/perlreref.pod
@@ -124,13 +124,13 @@ and L<perlunicode> for details.
\W A non-word character
\s A whitespace character
\S A non-whitespace character
- \h An horizontal white space
- \H A non horizontal white space
+ \h An horizontal whitespace
+ \H A non horizontal whitespace
\N A non newline (when not followed by '{NAME}'; experimental; not
valid in a character class; equivalent to [^\n]; it's like '.'
without /s modifier)
- \v A vertical white space
- \V A non vertical white space
+ \v A vertical whitespace
+ \V A non vertical whitespace
\R A generic newline (?>\v|\x0D\x0A)
\C Match a byte (with Unicode, '.' matches a character)