Subject: | Warning from TAP::Harness->Version with underscore |
From t/use_tap_harness.t in bleadperl I get
Argument "3.25_01" isn't numeric in numeric ge (>=) at
cpan/Module-Build/t/use_tap_harness.t line 6.
This can be fixed with an eval.
Subject: | 0004-numify-version.patch |
From 78c145fd08c4284c20b44aa1bc0fdce88e61262f Mon Sep 17 00:00:00 2001
From: Robin Barker <rmbarker@cpan.org>
Date: Wed, 11 Jul 2012 00:33:25 +0100
Subject: [PATCH 4/5] silence warning about non-numeric value
The VERSION (string) contains _ and is not recognised as numeric.
Applying eval converts the string to a recognised number
---
cpan/Module-Build/t/use_tap_harness.t | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cpan/Module-Build/t/use_tap_harness.t b/cpan/Module-Build/t/use_tap_harness.t
index f6e7e50..d9b8b5d 100644
--- a/cpan/Module-Build/t/use_tap_harness.t
+++ b/cpan/Module-Build/t/use_tap_harness.t
@@ -3,7 +3,7 @@
use strict;
use Test::More;
use lib 't/lib';
-if (eval { require TAP::Harness } && TAP::Harness->VERSION >= 3) {
+if (eval { require TAP::Harness } && (eval TAP::Harness->VERSION) >= 3) {
plan tests => 9;
} else {
plan skip_all => 'TAP::Harness 3+ not installed'
--
1.7.4.1