>perl -MIO::Socket::IP -e "print$IO::Socket::IP::VERSION" 0.37 >perl -MSocket -e "print$Socket::VERSION" 2.021
The code works fine with using the INET6 Module but not with IO::Socket::IP.Output :: perl -MIO::Socket::IP -E "my $sock = IO::Socket::IP->new(PeerHost => q +q(2620:0:1aa0:8070:1:88:200:e78f), PeerPort => 80, Timeout => 10 ) o +r die $@; say $sock->peerhost" nodename nor servname provided, or not known at -e line 1.
perl -MIO::Socket::INET6 -E "my $sock = IO::Socket::INET6->new(PeerHos +t => qq(2620:0:1aa0:8070:1:88:200:e78f), PeerPort => 80, Timeout => +10 ) or die $@; say $sock->peerhost" 2620:0:1aa0:8070:1:88:200:e78f
I came across one Bug ( https://rt.cpan.org/Public/Bug/Display.html?id=79110 ) and found this to be similar to the problem I am facing. I also got the same following error upon trying the code as suggested in that bug ::
- Cannot create socket - ai_family not supported I also triedAs per the reporter, it worked fine for Strawberry Perl, But is not working for me as I am using Activestate Perl. Can anyone please suggest a solution for this problem. Any help is really appreciated. Thankscpan > force install Socket
In reply to Re^8: Activeperl 5.16.1 Ipv6 support
by Mayank09
in thread Activeperl 5.16.1 Ipv6 support
by rama133101
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |