I did a test with the code found on the IO::Socket::IP page:
use strict;
use warnings;
use IO::Socket::IP -register;
my $sock = IO::Socket->new(
Domain => PF_INET6,
LocalHost => "::1",
Listen => 1,
) or die "Cannot create socket - $@\n";
print "Created a socket of type " . ref($sock) . "\n";
And the output I get on a perl 5.8.8 machine is:
Cannot create socket - Address family for hostaname not supported
While on a slackware machine with perl 5.12.3 it succeed.
So, it seems that upgrading Socket.pm to the latest version isn't enough to enable ipv6 support on perl 5.8.8.