Skip Menu |

This queue is for tickets about the Net-CIDR-Lite CPAN distribution.

Report information
The Basics
Id: 48108
Status: resolved
Priority: 0/
Queue: Net-CIDR-Lite

People
Owner: Nobody in particular
Requestors: daviddcawley [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.20
Fixed in: 0.21



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
Also, the use of the list method prior to an add results in the same behaviour: use Net::CIDR::Lite; my $ipobj = Net::CIDR::Lite->new; $ipobj->list; $ipobj->add('1.2.3.4/32');
Thanks. Fixed in 0.21.