Skip to content

Commit a2492d6

Browse files
committed
remove indirect calls to import() method
... i.e. turn `import Foo "bar"` into `Foo->import("bar")`.
1 parent 5c271c5 commit a2492d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+85
-85
lines changed

configpm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ if ($orig_config_txt ne $config_txt or $orig_heavy_txt ne $heavy_txt) {
11991199
unshift(@INC,'lib');
12001200
require $Config_PM;
12011201
require $Config_heavy;
1202-
import Config;
1202+
Config->import;
12031203

12041204
die "$0: $Config_PM not valid"
12051205
unless $Config{'PERL_CONFIG_SH'} eq 'true';

dist/Devel-PPPort/parts/inc/podtest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ else {
2424
use Test::Pod;
2525
$Test::Pod::VERSION >= 1.41
2626
or die "Test::Pod version only $Test::Pod::VERSION";
27-
import Test::Pod tests => scalar @pods;
27+
Test::Pod->import(tests => scalar @pods);
2828
};
2929
$reason = 'Test::Pod >= 1.41 required' if $@;
3030
}

dist/Exporter/t/Exporter.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ sub TIESCALAR{bless[]}
248248
{
249249
tie my $t, __PACKAGE__;
250250
for($t) { # $_ is now tied
251-
import Exporter::for::Tied::_;
251+
Exporter::for::Tied::_->import;
252252
}
253253
}
254254
::ok(1, 'import with tied $_');

dist/ExtUtils-CBuilder/t/00-have-compiler.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ BEGIN {
1313
if ($^O eq 'VMS') {
1414
# So we can get the return value of system()
1515
require vmsish;
16-
import vmsish;
16+
vmsish->import;
1717
}
1818
}
1919

dist/ExtUtils-CBuilder/t/01-basic.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ BEGIN {
66
if ($^O eq 'VMS') {
77
# So we can get the return value of system()
88
require vmsish;
9-
import vmsish;
9+
vmsish->import;
1010
}
1111
}
1212
use ExtUtils::CBuilder;

dist/ExtUtils-CBuilder/t/02-link.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ BEGIN {
66
if ($^O eq 'VMS') {
77
# So we can get the return value of system()
88
require vmsish;
9-
import vmsish;
9+
vmsish->import;
1010
}
1111
}
1212
use ExtUtils::CBuilder;

dist/ExtUtils-CBuilder/t/03-cplusplus.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ BEGIN {
66
if ($^O eq 'VMS') {
77
# So we can get the return value of system()
88
require vmsish;
9-
import vmsish;
9+
vmsish->import;
1010
}
1111
}
1212
use ExtUtils::CBuilder;

dist/I18N-Collate/t/I18N-Collate.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use strict;
77
no warnings;
88

99
BEGIN {
10-
require Config; import Config;
10+
require Config; Config->import;
1111
if (!$::Config{d_setlocale} || $::Config{ccflags} =~ /\bD?NO_LOCALE\b/) {
1212
print "1..0\n";
1313
exit;

dist/Safe/t/safe1.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!./perl -w
22
$|=1;
33
BEGIN {
4-
require Config; import Config;
4+
require Config; Config->import;
55
if ($Config{'extensions'} !~ /\bOpcode\b/ && $Config{'osname'} ne 'VMS') {
66
print "1..0\n";
77
exit 0;

dist/Safe/t/safe2.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!./perl -w
22
$|=1;
33
BEGIN {
4-
require Config; import Config;
4+
require Config; Config->import;
55
if ($Config{'extensions'} !~ /\bOpcode\b/ && $Config{'osname'} ne 'VMS') {
66
print "1..0\n";
77
exit 0;

0 commit comments

Comments
 (0)