Subject: | Incorrectly states that two IP addresses are different when they are the same |
This program prints No instead of Yes:
#!/usr/bin/env perl
use NetAddr::IP;
my $ip = NetAddr::IP->new('180.020.200.200');
my $ip2 = NetAddr::IP->new('180.20.200.200');
if($ip eq $ip2) {
print "Yes\n";
} else {
print "No\n";
}