Extracted from patch submitted by Lajos Veres in RT #123693.
design deficiencies, and nowadays, there is a series of "UTF-8
locales", based on Unicode. These are locales whose character set is
Unicode, encoded in UTF-8. Starting in v5.20, Perl fully supports
-UTF-8 locales, except for sorting and string comparisions. (Use
+UTF-8 locales, except for sorting and string comparisons. (Use
L<Unicode::Collate> for these.) Perl continues to support the old
non UTF-8 locales as well.
close $fh or die "Error closing $name: $!";
if ($TAP) {
- # Don't use compare beacuse if there are errors it doesn't give any
+ # Don't use compare because if there are errors it doesn't give any
# way to generate diagnostics about what went wrong.
# These files are small enough to read into memory.
local $/;
eval q# sub f ($) { } f $x / 2; #;
is( $@, '', "'/' correctly parsed as arithmetic operator" );
eval q# sub f ($):lvalue { $y } f $x /= 2; #;
-is( $@, '', "'/=' correctly parsed as assigment operator" );
+is( $@, '', "'/=' correctly parsed as assignment operator" );
eval q# sub f ($) { } f $x /2; #;
like( $@, qr/^Search pattern not terminated/,
"Caught unterminated search pattern error message: empty subroutine" );
seek DATA, $data_start, Fcntl::SEEK_SET() or die $!;
is(Colour::H1->getline(), <DATA>, 'read from a file');
- is(C3::H1->getline(), 'method in C3::H1', 'intial resolution is a method');
+ is(C3::H1->getline(), 'method in C3::H1', 'initial resolution is a method');
*Copy:: = \*C3::;
*C3:: = \*Colour::;
}
# Bug RT #45167 the return value of sprintf sometimes wasn't tainted
-# when the args were tainted. This only occured on the first use of
+# when the args were tainted. This only occurred on the first use of
# sprintf; after that, its TARG has taint magic attached, so setmagic
# at the end works. That's why there are multiple sprintf's below, rather
# than just one wrapped in an inner loop. Also, any plaintext between
-# fprmat entires would correctly cause tainting to get set. so test with
+# fprmat entries would correctly cause tainting to get set. so test with
# "%s%s" rather than eg "%s %s".
{
=head1 DESCRIPTION
customized.t checks that files listed in C<Maintainers.pl> that have been C<CUSTOMIZED>
-are not accidently overwritten by CPAN module updates.
+are not accidentally overwritten by CPAN module updates.
=head1 OPTIONS
# Sort file names so we get consistent results, and to put cpan last,
- # preceeded by the ones that we don't generally parse. This is because both
+ # preceded by the ones that we don't generally parse. This is because both
# these classes are generally parsed only if there is a link to the interior
# of them, and we have to parse all others first to guarantee that they don't
# have such a link. 'lib' files come just before these, as some of these are
}
my $code1u = "(??{qw(\x{100})})";
- eval {/^$code1u$/}; norun("reparse embeded unicode norun");
+ eval {/^$code1u$/}; norun("reparse embedded unicode norun");
{
use re 'eval';
- ok("\x{100}" =~ /^$code1u$/, "reparse embeded unicode");
+ ok("\x{100}" =~ /^$code1u$/, "reparse embedded unicode");
}
}
# Written so as to count as one test
local $Level = $Level + 1;
if( ref $class ) {
- ok( 0, "$class is a refrence, not a class name" );
+ ok( 0, "$class is a reference, not a class name" );
}
else {
isa_ok($class, $isa, $class_name);
plan tests => 1;
# Looks to see if a "do 'unicore/lib/Sc/Hira.pl'" is called more than once, by
-# putting a compile sub first on the libary path;
+# putting a compile sub first on the library path;
# XXX Kludge: requires exact path, which might change, and has deep knowledge
# of how utf8_heavy.pl works, which might also change.