Skip Menu |

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

Report information
The Basics
Id: 71510
Status: resolved
Priority: 0/
Queue: Net-IP

People
Owner: cpan [...] bat.ru
Requestors: mzagrabe [...] d.umn.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.26



Subject: address 0.0.0.0 does not return BigInt object
Date: Thu, 6 Oct 2011 14:53:27 -0500
To: bug-Net-IP [...] rt.cpan.org
From: Matt Zagrabelny <mzagrabe [...] d.umn.edu>
Hi, I am trying to use the BigInt object returned from the intip method for the IP address '0.0.0.0', the method returns an undef. A code snippet is below. #!/usr/bin/env perl use strict; use warnings; use Net::IP; my $ip = new Net::IP('0.0.0.0') or die "Unable to create IP object."; my $int = $ip->intip; if (defined $int) { print "I am defined.\n"; } else { print "I am not defined.\n"; } $ip = new Net::IP('0.0.0.1') or die "Unable to create IP object."; $int = $ip->intip; if (defined $int) { print "I am defined.\n"; } else { print "I am not defined.\n"; } Thanks! -mz
On Thu Oct 06 15:57:26 2011, mzagrabe@d.umn.edu wrote: Show quoted text
> Hi, > > I am trying to use the BigInt object returned from the intip method > for the IP address '0.0.0.0', the method returns an undef. > A code snippet is below.
That should be fixed in the 1.27. Thanks for the report!