Skip to content

Commit fc316f6

Browse files
committed
fix typos in various perl*.pod documents
Fixes #22735. Fixes #22734.
1 parent 541aeef commit fc316f6

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

pod/perl5260delta.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2828,7 +2828,7 @@ L<[GH #15606]|https://github.com/Perl/perl5/issues/15606>
28282828

28292829
=item *
28302830

2831-
Avoid a heap-after-use error in the parser when creating an error messge
2831+
Avoid a heap-after-use error in the parser when creating an error message
28322832
for a syntactically invalid heredoc.
28332833
L<[GH #15527]|https://github.com/Perl/perl5/issues/15527>
28342834

pod/perl5340delta.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ hashref of optimization data discovered about a compiled regexp.
12071207

12081208
The C<PERL_GLOBAL_STRUCT> compilation option has been removed, and
12091209
with it the need or the C<dVAR> macro. C<dVAR> remains defined as a
1210-
no-op outside C<PERL_CORE> for backwards compatiblity with XS modules.
1210+
no-op outside C<PERL_CORE> for backwards compatibility with XS modules.
12111211

12121212
=item *
12131213

pod/perl5360delta.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ PERL_IMPLICIT_CONTEXT will remain defined for compatibility with XS modules.
11781178
=item *
11791179

11801180
The API constant formerly named C<G_ARRAY>, indicating list context, has now
1181-
been renamed to a more accurate C<G_LIST>. A compatibilty macro C<G_ARRAY> has
1181+
been renamed to a more accurate C<G_LIST>. A compatibility macro C<G_ARRAY> has
11821182
been added to allow existing code to work unaffected. New code should be
11831183
written using the new constant instead. This is supported by C<Devel::PPPort>
11841184
version 3.63.
@@ -1476,7 +1476,7 @@ could cause a memory write to a freed C<dbstate> op.
14761476
=item *
14771477

14781478
When bareword filehandles are disabled, the parser was interpreting
1479-
any bareword as a filehandle, even when immediatey followed by parens.
1479+
any bareword as a filehandle, even when immediately followed by parens.
14801480

14811481
=back
14821482

pod/perl5380delta.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ have a constant target label, and that label is found within the block.
216216

217217
=head2 New regexp variable ${^LAST_SUCCESSFUL_PATTERN}
218218

219-
This allows access to the last succesful pattern that matched in the current
219+
This allows access to the last successful pattern that matched in the current
220220
scope. Many aspects of the regex engine refer to the "last successful
221221
pattern". The empty pattern reuses it, and all of the magic regex vars relate
222222
to it. This allows access to its pattern. The following code
@@ -1428,7 +1428,7 @@ account.
14281428

14291429
Removed C<< Complex regular subexpression recursion limit (%d) exceeded >>
14301430

1431-
The regular expresion engine has not used recursion in some time. This
1431+
The regular expression engine has not used recursion in some time. This
14321432
warning no longer makes sense.
14331433

14341434
See [L<GH #19636|https://github.com/Perl/perl5/pull/19636>].

pod/perldiag.pod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6984,7 +6984,7 @@ enough to figure out what you really meant.
69846984
=item Unexpected characters while parsing class :isa attribute: %s
69856985

69866986
(F) You tried to specify something other than a single class name with an
6987-
optional trailing verison number as the value for a C<class> C<:isa>
6987+
optional trailing version number as the value for a C<class> C<:isa>
69886988
attribute. This confused the parser.
69896989

69906990
=item Unexpected exit %u
@@ -7044,7 +7044,7 @@ the only way to do that in Perl is to mark it as serious.
70447044

70457045
(F) A Unicode property wildcard looks like a delimited regular
70467046
expression pattern (all within the braces of the enclosing C<\p{...}>.
7047-
The closing delimtter to match the opening one was not found. If the
7047+
The closing delimiter to match the opening one was not found. If the
70487048
opening one is escaped by preceding it with a backslash, the closing one
70497049
must also be so escaped.
70507050

@@ -7710,7 +7710,7 @@ only C. This usually means there's a better way to do it in Perl.
77107710
a starting delimiter of a string outside the scope of
77117711
S<C<use feature 'extra_paired_delimiters'>>. This character is the
77127712
mirror image of another Unicode character; within the scope of that
7713-
feature, the two are considered a pair for delimitting strings. It is
7713+
feature, the two are considered a pair for delimiting strings. It is
77147714
planned to make that feature the default, at which point this usage
77157715
would become illegal; hence this warning.
77167716

@@ -7734,7 +7734,7 @@ subpatterns in regex; marked by S<<-- HERE> in m/%s/
77347734
(F) You were using a wildcard subpattern a Unicode property value, and
77357735
the subpattern contained something that is illegal. Not all regular
77367736
expression capabilities are legal in such subpatterns, and this is one.
7737-
Rewrite your subppattern to not use the offending construct.
7737+
Rewrite your subpattern to not use the offending construct.
77387738
See L<perlunicode/Wildcards in Property Values>.
77397739

77407740
=item Use of -l on filehandle%s

pod/perlfunc.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ confusion.
10011001
Also avoid C<bless>ing things into the class name C<0>; this
10021002
will cause code which (erroneously) checks the result of
10031003
L<C<ref>|/ref EXPR> to see if a reference is C<bless>ed to fail,
1004-
as "0", a falsy value, is returned.
1004+
as "0", a false value, is returned.
10051005

10061006
See L<perlmod/"Perl Modules"> for more details.
10071007

@@ -3582,7 +3582,7 @@ is used as a C<while>/C<for> condition, then the condition actually
35823582
tests for definedness of the expression's value, not for its regular
35833583
truth value.
35843584

3585-
Internal implemenation details:
3585+
Internal implementation details:
35863586

35873587
This is the internal function implementing the C<< <*.c> >> operator,
35883588
but you can use it directly. The C<< <*.c> >> operator is discussed in

pod/perllocale.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ to crack.
11041104

11051105
See also C<CRNCYSTR> in L<I18N::Langinfo>.
11061106

1107-
=head2 Category C<LC_TIME>: Respresentation of time
1107+
=head2 Category C<LC_TIME>: Representation of time
11081108

11091109
Output produced by C<POSIX::strftime()>, which builds a formatted
11101110
human-readable date/time string, is affected by the current C<LC_TIME>
@@ -1251,7 +1251,7 @@ C<LC_CTYPE> is in effect, and the subpattern
12511251
regular expression contains a locale-dependent construct. These
12521252
constructs include C<\w> (to match an alphanumeric character), C<\W>
12531253
(non-alphanumeric character), C<\b> and C<\B> (word-boundary and
1254-
non-boundardy, which depend on what C<\w> and C<\W> match), C<\s>
1254+
non-boundary, which depend on what C<\w> and C<\W> match), C<\s>
12551255
(whitespace character), C<\S> (non whitespace character), C<\d> and
12561256
C<\D> (digits and non-digits), and the POSIX character classes, such as
12571257
C<[:alpha:]> (see L<perlrecharclass/POSIX Character Classes>).

pod/perlperf.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ it managed to execute an average of 628,930 times a second during our test, the
167167
direct approach managed to run an additional 204,403 times, unfortunately.
168168
Unfortunately, because there are many examples of code written using the
169169
multiple layer direct variable access, and it's usually horrible. It is,
170-
however, minusculy faster. The question remains whether the minute gain is
170+
however, minusculely faster. The question remains whether the minute gain is
171171
actually worth the eyestrain, or the loss of maintainability.
172172

173173
=head2 Search and replace or tr
@@ -198,7 +198,7 @@ noticing it's assigned only the once.
198198

199199
my $STR = "$$-this and that";
200200

201-
timethese( 1000000, {
201+
timethese(1000000, {
202202
'sr' => sub { my $str = $STR; $str =~ s/[aeiou]/x/g; return $str; },
203203
'tr' => sub { my $str = $STR; $str =~ tr/aeiou/xxxxx/; return $str; },
204204
});

pod/perlvar.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ In order to make it easy to perform an action with shared state both
812812
before and after the require keyword was executed the C<require__before>
813813
hook may return a "post-action" coderef which will in turn be executed when
814814
the C<require> completes. This coderef will be executed regardless as to
815-
whether the require completed succesfully or threw an exception. It will
815+
whether the require completed successfully or threw an exception. It will
816816
be called with the filename that was required. You can check %INC to
817817
determine if the require was successful. Any other return from the
818818
C<require__before> hook will be silently ignored.

0 commit comments

Comments
 (0)