Subject: | Using the clean method before an add results in a bad mask error |
Using the clean() method prior to an add() of an IP addresses will
result in a Bad Mask failure on future adds.
The module should be able to successfully handle this case or at the
very least report a more informative error.
Sample Code to reproduce:
use Net::CIDR::Lite;
my $ipobj = Net::CIDR::Lite->new;
$ipobj->clean;
$ipobj->add('1.2.3.4/32');
Sample Output:
Bad mask 32 at /usr/lib/perl5/vendor_perl/5.10.0/Net/CIDR/Lite.pm line 40
Net::CIDR::Lite::add('Net::CIDR::Lite=HASH(0x95898c4)',
'1.2.3.4/32') called at test.pl line 6