Subject: | Operator eq works, but ne crashes. |
Example:
use NetAddr::IP;
my $ip = NetAddr::IP->new('localhost');
if ($ip ne '')
{
print "Didn't die! \n";
}
This will die with -noxs. Tested on Activestate Build 718 v5.8.8 on
WindowsXP, where I do not have a C compiler installed, and OpenBSD 3.9
v5.8.6 where 4.004 would not compile with xs code.
It is not intuitive that eq would work and ne would not. This could be a
documentation bug or a code bug, but I really think if you overload eq
then ne should work as well.
In my particular case, I was looping over a hash, manipulating values
and trying to skip the empty ones.
I do not know if I'm testing a NetAddr:IP object and probably do not use
any other objects overloaded so well.
Thanks for the handy IP manipulation capabilities.