in reply to How best to support IPv4/v6 in Perl server

That's easy. If you have Perl 5.14 or later, use IO::Socket::INET (core module, IP-dualstack). Any other Perl, install and use IO::Socket::IP (CPAN module, IP-dualstack).
  • Comment on Re: How best to support IPv4/v6 in Perl server

Replies are listed 'Best First'.
Re^2: How best to support IPv4/v6 in Perl server
by VinsWorldcom (Prior) on Jan 26, 2012 at 17:23 UTC

    Didn't realize that - so in 5.14 and on, IO::Socket::INET *includes* IPv6?

    Of course, as you point out, that won't be backward compatible, I'll still need to 'use' IO::Socket::IP or IO::Socket::INET6 for older Perl versions.

    Thanks!

    Anyone else have an opinion?