diff --git a/bin/account-manager.pl.in b/bin/account-manager.pl.in
index 3a1bd57173e76eb171cfed49eee999654eb6cfc7..b70db7a107e25bba9711c4f8300b1f49a2301606 100755
--- a/bin/account-manager.pl.in
+++ b/bin/account-manager.pl.in
@@ -5,7 +5,7 @@ use warnings;
 use utf8;
 use lib qw(@modulesdir@);
 use feature "switch";
-no warnings 'experimental::smartmatch';
+no if $] >= 5.017011, warnings => 'experimental::smartmatch';
 
 use Config::Tiny;
 use Data::Dumper;