Subject: | Error when trying to create object from 2222::1:0:0:0/64 |
Date: | Fri, 26 Oct 2018 14:03:39 +0200 |
To: | bug-Net-IP [...] rt.cpan.org |
From: | Marc Uebel <contact [...] gestioip.net> |
Hi
When I try to create an object from the IPv6 address 2222::1:0:0:0/64 I
get the following error:
Invalid prefix
00100010001000100000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000/64
As 2222::1:0:0:0/64 is a valid IPv6 address, this should work.
I tried with the following script:
#!/usr/bin/perl
use Net::IP;
my $net = "2222::1:0:0:0/64";
my $ip = new Net::IP ($net) or die (Net::IP::Error());
print ("IP : ".$ip->ip()."\n");
Thank you,
Marc