X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlre.pod;h=02dd2cda5d8260ce0421f39218d9070d90372e7c;hb=a0acbdc36d211b2eba42328df555d9ec49fa4cd4;hp=6dd98ae3bf5d57162b2ef344085a845a6486c760;hpb=9ca3806253dfe83a834b67a46fb82a7ac77a38e5;p=p5sagit%2Fp5-mst-13.2.git
diff --git a/pod/perlre.pod b/pod/perlre.pod
index 6dd98ae..02dd2cd 100644
--- a/pod/perlre.pod
+++ b/pod/perlre.pod
@@ -40,7 +40,7 @@ is, no matter what C<$*> contains, C without C will force
"^" to match only at the beginning of the string and "$" to match
only at the end (or just before a newline at the end) of the string.
Together, as /ms, they let the "." match any character whatsoever,
-while yet allowing "^" and "$" to match, respectively, just after
+while still allowing "^" and "$" to match, respectively, just after
and just before newlines within the string.
=item x
@@ -169,7 +169,7 @@ You'll need to write something like C.
In addition, Perl defines the following:
\w Match a "word" character (alphanumeric plus "_")
- \W Match a non-word character
+ \W Match a non-"word" character
\s Match a whitespace character
\S Match a non-whitespace character
\d Match a digit character
@@ -179,8 +179,9 @@ In addition, Perl defines the following:
\X Match eXtended Unicode "combining character sequence",
equivalent to C<(?:\PM\pM*)>
\C Match a single C char (octet) even under utf8.
+ (Currently this does not work correctly.)
-A C<\w> matches a single alphanumeric character, not a whole word.
+A C<\w> matches a single alphanumeric character or C<_>, not a whole word.
Use C<\w+> to match a string of Perl-identifier characters (which isn't
the same as matching an English word). If C