Suppress warnings about smartmatch being experimental

This commit is contained in:
Benjamin Renard 2018-02-17 18:03:33 +01:00 committed by root
parent 01f8aec193
commit 139190f7ae

View file

@ -34,6 +34,10 @@
use strict;
no utf8;
# Suppress warnings about smartmatch being experimental
# Found here: http://blogs.perl.org/users/mike_b/2013/06/a-little-nicer-way-to-use-smartmatch-on-perl-518.html
no if $] >= 5.017011, warnings => 'experimental::smartmatch';
# Nagios
use lib "/usr/lib/nagios/plugins";
use utils qw(%ERRORS $TIMEOUT);