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.