Subject: | AF_INET6 redefined |
Date: | Fri, 29 Aug 2014 01:53:30 +0400 |
To: | bug-net-subnet [...] rt.cpan.org |
From: | Oleg Bulatov <oleg [...] bulatov.me> |
Net-Subnet-1.03
perl v5.10.1
Constant subroutine Net::Subnet::AF_INET6 redefined at /usr/share/perl/5.10/Exporter.pm line 67.
Prototype mismatch: sub Net::Subnet::AF_INET6 () vs none at /usr/share/perl/5.10/Exporter.pm line 67.
* Code to reproduce:
use strict;
use warnings;
use Net::Subnet;
* Possible code changes:
--- Subnet.pm.orig 2014-08-29 01:50:36.709112780 +0400
+++ Subnet.pm 2014-08-29 01:50:55.965360179 +0400
@@ -2,5 +2,5 @@
use strict;
-use Socket;
+use Socket ();
BEGIN {
if (defined &Socket::inet_pton) {
--
WBR, Oleg Bulatov