diff options
author | Piotr Fusik <pfusik@op.pl> | 2005-07-31 14:50:04 +0200 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2005-08-02 10:39:51 +0000 |
commit | 3c4b39bee8832007b7e91bfce8701d34cacab411 (patch) | |
tree | 190f72b72255db85e5c78f68a0d0047692aab3a9 /lib/Text | |
parent | db30010093a0bacd16d1fa3fd1bd5397da6479d3 (diff) | |
download | perl-3c4b39bee8832007b7e91bfce8701d34cacab411.tar.gz |
Typos in *.p[lm]
From: "Piotr Fusik" <pfusik@op.pl>
Message-ID: <001401c595bd$dccb5d80$0bd34dd5@piec>
p4raw-id: //depot/perl@25261
Diffstat (limited to 'lib/Text')
-rw-r--r-- | lib/Text/Balanced.pm | 8 | ||||
-rw-r--r-- | lib/Text/Wrap.pm | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/Text/Balanced.pm b/lib/Text/Balanced.pm index 9cfe6bf35a..297e8df55e 100644 --- a/lib/Text/Balanced.pm +++ b/lib/Text/Balanced.pm @@ -1135,9 +1135,9 @@ The substring to be extracted must appear at the current C<pos> location of the string's variable (or at index zero, if no C<pos> position is defined). In other words, the C<extract_...> subroutines I<don't> -extract the first occurance of a substring anywhere +extract the first occurrence of a substring anywhere in a string (like an unanchored regex would). Rather, -they extract an occurance of the substring appearing +they extract an occurrence of the substring appearing immediately at the current matching position in the string (like a C<\G>-anchored regex would). @@ -1403,7 +1403,7 @@ See also: C<"extract_quotelike"> and C<"extract_codeblock">. C<extract_variable> extracts any valid Perl variable or variable-involved expression, including scalars, arrays, hashes, array -accesses, hash look-ups, method calls through objects, subroutine calles +accesses, hash look-ups, method calls through objects, subroutine calls through subroutine references, etc. The subroutine takes up to two optional arguments: @@ -2062,7 +2062,7 @@ If none of the extractor subroutines succeeds, then one character is extracted from the start of the text and the extraction subroutines reapplied. Characters which are thus removed are accumulated and eventually become the next field (unless the fourth argument is true, in which -case they are disgarded). +case they are discarded). For example, the following extracts substrings that are valid Perl variables: diff --git a/lib/Text/Wrap.pm b/lib/Text/Wrap.pm index 602cdab48f..f12d4583d6 100644 --- a/lib/Text/Wrap.pm +++ b/lib/Text/Wrap.pm @@ -143,11 +143,11 @@ B<Example 3> =head1 DESCRIPTION C<Text::Wrap::wrap()> is a very simple paragraph formatter. It formats a -single paragraph at a time by breaking lines at word boundries. +single paragraph at a time by breaking lines at word boundaries. Indentation is controlled for the first line (C<$initial_tab>) and all subsequent lines (C<$subsequent_tab>) independently. Please note: C<$initial_tab> and C<$subsequent_tab> are the literal strings that will -be used: it is unlikley you would want to pass in a number. +be used: it is unlikely you would want to pass in a number. Text::Wrap::fill() is a simple multi-paragraph formatter. It formats each paragraph separately and then joins them together when it's done. It |