Use Module->import(...) instead of import(Module, ...)

This matches the documentation of the `use` statement.
This commit is contained in:
Richard Hansen 2024-06-03 22:01:32 -04:00
parent 11be757d54
commit a0240345bf

View file

@ -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/);
}
######################################################################