Skip Menu |

This queue is for tickets about the NetAddr-IP CPAN distribution.

Report information
The Basics
Id: 61561
Status: rejected
Worked: 10 min
Priority: 0/
Queue: NetAddr-IP

People
Owner: Nobody in particular
Requestors: abraxxa [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 4.030
Fixed in: (no value)



Subject: sub comp_addr_mask should check if the parameters are hashrefs
Comparing a NetAddr::IP object against a string using ne results in the error Can't use string ("") as a HASH ref while "strict refs" in use at NetAddr/IP/Lite.pm line 276 Example code that can be used for a test: #!/usr/bin/env perl use NetAddr::IP; my $ip = NetAddr::IP->new('10.1.1.1'); print $ip ne '', "\n"; I discoverred the error while trying out MooseX::Types::NetAddr::IP with HTML::FormHandler.
The overload "ne" is not supported in NetAddr::IP I will see if I can add it in the next revision. Michael