"AF_INET6" is not exported by the Socket6 module #### push @EXPORT, qw(AF_INET6) unless defined eval {Socket::AF_INET6()}; #### use warnings; use strict; use Socket qw(AF_INET6 AF_INET inet_aton inet_ntoa); use Socket6 qw(inet_pton inet_ntop); BEGIN { require Exporter; require DynaLoader; our @ISA = qw(Exporter DynaLoader); our @EXPORT = qw(AF_INET AF_INET6); }