Use Module->import(...)
instead of import(Module, ...)
This matches the documentation of the `use` statement.
This commit is contained in:
parent
11be757d54
commit
a0240345bf
1 changed files with 3 additions and 3 deletions
|
@ -2610,9 +2610,9 @@ On Debian, the package libdigest-sha1-perl or libdigest-sha-perl must be install
|
|||
EOM
|
||||
}
|
||||
if ($sha1_loaded) {
|
||||
import Digest::SHA1 (qw/sha1_hex/);
|
||||
Digest::SHA1->import(qw/sha1_hex/);
|
||||
} elsif ($sha_loaded) {
|
||||
import Digest::SHA (qw/sha1_hex/);
|
||||
Digest::SHA->import(qw/sha1_hex/);
|
||||
}
|
||||
}
|
||||
######################################################################
|
||||
|
@ -2626,7 +2626,7 @@ sub load_json_support {
|
|||
Error loading the Perl module JSON::PP needed for $why update.
|
||||
EOM
|
||||
}
|
||||
import JSON::PP (qw/decode_json encode_json/);
|
||||
JSON::PP->import(qw/decode_json encode_json/);
|
||||
}
|
||||
|
||||
######################################################################
|
||||
|
|
Loading…
Reference in a new issue