This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Silence a warning in Test::Builder that was causing lib/constant.t
authorSteve Peters <steve@fisharerojo.org>
Wed, 15 Oct 2008 19:07:38 +0000 (19:07 +0000)
committerSteve Peters <steve@fisharerojo.org>
Wed, 15 Oct 2008 19:07:38 +0000 (19:07 +0000)
to fail.

p4raw-id: //depot/perl@34491

lib/Test/Builder.pm

index 38a15d4..531dd42 100644 (file)
@@ -5,7 +5,7 @@ use 5.006;
 use strict;
 use warnings;
 
-our $VERSION = '0.82';
+our $VERSION = '0.82_01';
 $VERSION = eval $VERSION;    ## no critic (BuiltinFunctions::ProhibitStringyEval)
 
 # Make Test::Builder thread-safe for ithreads.
@@ -487,6 +487,7 @@ sub _unoverload_num {
 
     $self->_unoverload( '0+', @_ );
 
+    no warnings 'numeric';
     for my $val (@_) {
         next unless $self->_is_dualvar($$val);
         $$val = $$val + 0;