From a0240345bfa79719c4c5fbc3336935bfaded015d Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Mon, 3 Jun 2024 22:01:32 -0400 Subject: [PATCH] Use `Module->import(...)` instead of `import(Module, ...)` This matches the documentation of the `use` statement. --- ddclient.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ddclient.in b/ddclient.in index fa6e5ec..571e16e 100755 --- a/ddclient.in +++ b/ddclient.in @@ -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/); } ######################################################################