Subject: | NetAddr::IP "++" not working with IPv6 |
The "++" operation doesn't seem to work with IPv6 addresses. The code "$ip++;" doesn't seem to increment the address. It's not too big a deal; a normal increment (shown below) seems to work fine.
This is a great library.
use NetAddr::IP;
$ip = new NetAddr::IP('2001:468:ff:fffe::2/64');
for ($i=0;$i<10;$i++) {
print $ip->addr(),"\n";
$ip=$ip+1;;
}