From: Tokuhiro Matsuno Date: Mon, 2 Mar 2009 08:02:05 +0000 (+0000) Subject: depend to Scalar::Util 1.14. X-Git-Tag: 0.19~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a0c72aef3093e444e480b803f428ef8005e2916f;p=gitmo%2FMouse.git depend to Scalar::Util 1.14. because Scalar::Util < 1.14 has a bug. reported by bingos++, cosmicnet++, tomyhero++ --- diff --git a/Makefile.PL b/Makefile.PL index 7311fb8..51bd426 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -5,8 +5,10 @@ all_from 'lib/Mouse.pm'; tests 't/*.t t/*/*.t'; -if ($] < 5.007003) { - requires 'Scalar::Util'; +if ($] < 5.008004) { + # Scalar::Util < 1.14 has a bug. + # > Fixed looks_like_number(undef) to return false for perl >= 5.009002 + requires 'Scalar::Util' => 1.14; } build_requires 'Test::Exception';