about summary refs log tree commit
path: root/lib/Net/FTP.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Net/FTP.pm')
-rw-r--r--lib/Net/FTP.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Net/FTP.pm b/lib/Net/FTP.pm
index b1fd255..8808685 100644
--- a/lib/Net/FTP.pm
+++ b/lib/Net/FTP.pm
@@ -32,6 +32,7 @@ BEGIN {
   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';
 
@@ -41,9 +42,11 @@ BEGIN {
   # 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';