Subject: | Change in behavior when passing an empty string to the constructor |
I am not 100% sure it is a bug, but in our code we've been relying on
old behavior. Compare:
$ perl -MNetAddr::IP -MData::Dump -le 'print $NetAddr::IP::VERSION; my
$l = NetAddr::IP->new(""); dd $l;'
4.027
undef
$ perl -MNetAddr::IP -MData::Dump -le 'print $NetAddr::IP::VERSION; my
$l = NetAddr::IP->new(""); dd $l;'
4.059
bless({
addr => "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",
isv6 => 0,
mask => pack("H*","ffffffffffffffffffffffffffffffff"),
}, "NetAddr::IP")
Not sure which version the behavior has changed, but 4.058 behaves the
same as 4.059.
Thanks,
\Anton.