X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlre.pod;h=61907f8a488d426a42d882bf2be3533b738a5ad4;hb=5269aecde866056a77e32c937c7c3182bb599487;hp=02dd2cda5d8260ce0421f39218d9070d90372e7c;hpb=fb55449c820151ec18475c38cc3361fa88eb0a1b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlre.pod b/pod/perlre.pod index 02dd2cd..61907f8 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -179,7 +179,6 @@ 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 or C<_>, not a whole word. Use C<\w+> to match a string of Perl-identifier characters (which isn't @@ -269,7 +268,7 @@ Any alphanumeric or punctuation (special) character. =item print -Any alphanumeric or punctuation (special) character or space. +Any alphanumeric or punctuation (special) character or the space character. =item punct @@ -785,7 +784,7 @@ and the first "bar" thereafter. got Here's another example: let's say you'd like to match a number at the end -of a string, and you also want to keep the preceding part the match. +of a string, and you also want to keep the preceding of part the match. So you write this: $_ = "I have 2 numbers: 53147"; @@ -851,7 +850,7 @@ followed by "123". You might try to write that as But that isn't going to match; at least, not the way you're hoping. It claims that there is no 123 in the string. Here's a clearer picture of -why it that pattern matches, contrary to popular expectations: +why that pattern matches, contrary to popular expectations: $x = 'ABC123' ; $y = 'ABC445' ;