use/no warnings depending on perl version
authorHeiko
Mon, 26 Oct 2015 14:16:20 +0100
changeset 19 603edb903b49
parent 18 01f49b9e842c
child 20 dcbb52d57739
use/no warnings depending on perl version
install
--- a/install	Wed Sep 09 10:43:34 2015 +0200
+++ b/install	Mon Oct 26 14:16:20 2015 +0100
@@ -8,7 +8,8 @@
 use autodie;
 use Getopt::Long;
 use English qw(-no_match_vars);
-use if $^V >= v5.18 => (experimental => qw/smartmatch/);
+use if (not $^V < v5.19) => (experimental => qw/smartmatch/);
+no  if ($^V < v5.19) => (warnings => 'experimental');
 
 our $VERSION = '0.0';