Avoid "Smartmatch is experimental" warning

This commit is contained in:
Benjamin Renard 2018-04-05 15:20:23 +02:00 committed by root
parent 3715509a13
commit 9f2786d99d

View file

@ -121,7 +121,7 @@ foreach my $hostname ( sort(keys %Status) ) {
next if $hostname =~ /^\s*$/;
next if $hostname =~ /^ /;
next if ( $host && $hostname !~ m/$host/ );
next if ( scalar(@hostlist) > 0 && not ($hostname ~~ @hostlist) );
next if ( scalar(@hostlist) > 0 && not(grep /^\Q$hostname$/, @hostlist) );
my %HostStatus = %{$Status{$hostname}};
my %host_conf = %{$server->ConfigDataRead($hostname)};