In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/caedc70ba6260eef7c753adf315b14a90252192d?hp=9407f9c16f7d184b9b5524ddf3659d961e6a5f14>
- Log ----------------------------------------------------------------- commit caedc70ba6260eef7c753adf315b14a90252192d Author: Father Chrysostomos <[email protected]> Date: Sun Mar 6 14:29:09 2011 -0800 perlrequick tweaks M pod/perlrequick.pod commit b6b8cb97b8b6f149f508b82f10022825c481c663 Author: Father Chrysostomos <[email protected]> Date: Sun Mar 6 13:55:36 2011 -0800 Reword a perldiag entry Itâs a little more readable if itâs more concise, at least in this case. M pod/perldiag.pod ----------------------------------------------------------------------- Summary of changes: pod/perldiag.pod | 9 ++++----- pod/perlrequick.pod | 14 ++++++++------ 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 5efd095..a461d7b 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -793,11 +793,10 @@ nesting levels, the following is missing its final parenthesis: print q(The character '(' starts a side comment.); If you're getting this error from a here-document, you may have -included unseen whitespace before or after your closing tag or not -have anything, including a linebreak, after the closing tag. A good -programmer's editor will have a way to help you find these characters -(or lack of characters). See L<perlop> for the full details on here -documents. +included unseen whitespace before or after your closing tag or there +may not be a linebreak after it. A good programmer's editor will have +a way to help you find these characters (or lack of characters). See +L<perlop> for the full details on here-documents. =item Can't find Unicode property definition "%s" diff --git a/pod/perlrequick.pod b/pod/perlrequick.pod index 7d8cd8e..557cd49 100644 --- a/pod/perlrequick.pod +++ b/pod/perlrequick.pod @@ -88,7 +88,7 @@ e.g., C<\x1B>: "1000\t2000" =~ m(0\t2) # matches "cat" =~ /\143\x61\x74/ # matches in ASCII, but a weird way to spell cat -Regexes are treated mostly as double quoted strings, so variable +Regexes are treated mostly as double-quoted strings, so variable substitution works: $foo = 'house'; @@ -161,7 +161,9 @@ character, or the match fails. Then /[^0-9]/; # matches a non-numeric character /[a^]at/; # matches 'aat' or '^at'; here '^' is ordinary -Perl has several abbreviations for common character classes: +Perl has several abbreviations for common character classes. (These +definitions are those that Perl uses in ASCII mode with the C</a> modifier. +See L<perlrecharclass/Backslash sequences> for details.) =over 4 @@ -417,11 +419,11 @@ there are no groupings, a list of matches to the whole regex. So =head2 Search and replace Search and replace is performed using C<s/regex/replacement/modifiers>. -The C<replacement> is a Perl double quoted string that replaces in the +The C<replacement> is a Perl double-quoted string that replaces in the string whatever is matched with the C<regex>. The operator C<=~> is also used here to associate a string with C<s///>. If matching -against C<$_>, the S<C<$_ =~> > can be dropped. If there is a match, -C<s///> returns the number of substitutions made, otherwise it returns +against C<$_>, the S<C<$_ =~>> can be dropped. If there is a match, +C<s///> returns the number of substitutions made; otherwise it returns false. Here are a few examples: $x = "Time to feed the cat!"; @@ -469,7 +471,7 @@ matched substring. Some examples: The last example shows that C<s///> can use other delimiters, such as C<s!!!> and C<s{}{}>, and even C<s{}//>. If single quotes are used -C<s'''>, then the regex and replacement are treated as single quoted +C<s'''>, then the regex and replacement are treated as single-quoted strings. =head2 The split operator -- Perl5 Master Repository
