about summary refs log tree commit
path: root/lib/Net/SMTP.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Net/SMTP.pm')
-rw-r--r--lib/Net/SMTP.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Net/SMTP.pm b/lib/Net/SMTP.pm
index 4470b3d..1348831 100644
--- a/lib/Net/SMTP.pm
+++ b/lib/Net/SMTP.pm
@@ -26,6 +26,7 @@ our $VERSION = "3.03";
 my $ssl_class = eval {
   require IO::Socket::SSL;
   # first version with default CA on most platforms
+  no warnings 'numeric';
   IO::Socket::SSL->VERSION(1.999);
 } && 'IO::Socket::SSL';
 
@@ -35,9 +36,11 @@ my $nossl_warn = !$ssl_class &&
 # Code for detecting if we can use IPv6
 my $inet6_class = eval {
   require IO::Socket::IP;
+  no warnings 'numeric';
   IO::Socket::IP->VERSION(0.20);
 } && 'IO::Socket::IP' || eval {
   require IO::Socket::INET6;
+  no warnings 'numeric';
   IO::Socket::INET6->VERSION(2.62);
 } && 'IO::Socket::INET6';