From: Gisle Aas Date: Fri, 3 Nov 2006 07:08:18 +0000 (+0000) Subject: Typo fixes by Hendrik Maryns. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=28c3722c366b749ca5cccbb25c2ed5b72672ecd2;p=p5sagit%2Fp5-mst-13.2.git Typo fixes by Hendrik Maryns. p4raw-id: //depot/perl@29196 --- diff --git a/pod/perlretut.pod b/pod/perlretut.pod index 6afae21..fdff32a 100644 --- a/pod/perlretut.pod +++ b/pod/perlretut.pod @@ -308,7 +308,7 @@ string is the earliest point at which the regexp can match. # 'yes', 'Yes', 'YES', etc. This regexp displays a common task: perform a case-insensitive -match. Perl provides away of avoiding all those brackets by simply +match. Perl provides a way of avoiding all those brackets by simply appending an C<'i'> to the end of the match. Then C can be rewritten as C. The C<'i'> stands for case-insensitive and is an example of a B of the matching @@ -362,7 +362,7 @@ character, or the match fails. Then /[^0-9]/; # matches a non-numeric character /[a^]at/; # matches 'aat' or '^at'; here '^' is ordinary -Now, even C<[0-9]> can be a bother the write multiple times, so in the +Now, even C<[0-9]> can be a bother to write multiple times, so in the interest of saving keystrokes and making regexps more readable, Perl has several abbreviations for common character classes: @@ -432,7 +432,7 @@ You might wonder why C<'.'> matches everything but C<"\n"> - why not every character? The reason is that often one is matching against lines and would like to ignore the newline characters. For instance, while the string C<"\n"> represents one line, we would like to think -of as empty. Then +of it as empty. Then "" =~ /^$/; # matches "\n" =~ /^$/; # matches, "\n" is ignored @@ -502,7 +502,7 @@ Here are examples of C and C in action: Most of the time, the default behavior is what is wanted, but C and C are occasionally very useful. If C is being used, the start -of the string can still be matched with C<\A> and the end of string +of the string can still be matched with C<\A> and the end of the string can still be matched with the anchors C<\Z> (matches both the end and the newline before, like C<$>), and C<\z> (matches only the end): @@ -521,7 +521,7 @@ choices are described in the next section. =head2 Matching this or that -Sometimes we would like to our regexp to be able to match different +Sometimes we would like our regexp to be able to match different possible words or character strings. This is accomplished by using the B metacharacter C<|>. To match C or C, we form the regexp C. As before, perl will try to match the