Make corelist --feature a >= v5.9.5 option
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Sat, 9 Feb 2013 20:22:14 +0000 (20:22 +0000)
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Sat, 9 Feb 2013 20:22:14 +0000 (20:22 +0000)
dist/Module-CoreList/corelist

index 36b74c2..5cd2f8c 100644 (file)
@@ -221,6 +221,9 @@ if ($Opts{diff}) {
 }
 
 if ($Opts{feature}) {
+    die "\n--feature is only available with perl v5.9.5 or greater\n"
+      if $] < 5.009005;
+
     die "\nprovide at least one feature name to --feature\n"
         unless @ARGV;