Import of MIKER/NetAddr-IP-4.061 from CPAN.
gitpan-cpan-distribution: NetAddr-IP
gitpan-cpan-version:      4.061
gitpan-cpan-path:         MIKER/NetAddr-IP-4.061.tar.gz
gitpan-cpan-author:       MIKER
gitpan-cpan-maturity:     released
1 parent 50fcc01 commit f74aeda271899d4a82929aa864b13b2ef3c71795
@Michael Robinton Michael Robinton authored on 8 May 2012
Gitpan committed on 21 Oct 2014
Showing 11 changed files
View
11
Changes
Revision history for Perl extension NetAddr::IP
 
4.061 Tue May 8 16:24:03 PDT 2012
fixed bug in Lite v1.44 that returned
$ip->num() = 2^128 for 0.0.0.0/0
Thanks to Sebastian <debug@test1.org> for spotting it.
 
4.060 Fri Apr 6 16:00:02 PDT 2012
In Lite.pm v1.43,
fix bug #75976, change in behavior introduced in v4.050
where an empty string supplied to "new" previously returned
'undef' and now returns 'default' for ipV4 or ipV6
 
4.059 Wed Mar 7 12:50:04 PST 2012
add is_rfc1918 to Lite.pm v1.42
 
View
8
IP.pm
package NetAddr::IP;
 
use strict;
#use diagnostics;
use NetAddr::IP::Lite 1.42 qw(Zero Zeros Ones V4mask V4net);
use NetAddr::IP::Lite 1.44 qw(Zero Zeros Ones V4mask V4net);
use NetAddr::IP::Util 1.46 qw(
sub128
inet_aton
inet_any2n
@EXPORT_FAIL = qw($_netlimit);
 
@ISA = qw(Exporter NetAddr::IP::Lite);
 
$VERSION = do { sprintf " %d.%03d", (q$Revision: 4.59 $ =~ /\d+/g) };
$VERSION = do { sprintf " %d.%03d", (q$Revision: 4.61 $ =~ /\d+/g) };
 
=pod
 
=head1 NAME
use NetAddr::IP ':aton'
 
If called with no arguments, 'default' is assumed.
 
If called with an empty string as the argument, returns 'undef'
 
C<$addr> can be any of the following and possibly more...
 
n.n
n.n/mm
123456789012 a 'big' bcd number (bigger than perl likes)
and Math::BigInt
 
If called with no arguments, 'default' is assumed.
 
If called with an empty string as the argument, returns 'undef'
 
=item C<-E<gt>broadcast()>
 
Returns a new object referring to the broadcast address of a given
View
Lite/Changes
View
Lite/Lite.pm
View
Lite/MANIFEST
View
Lite/README
View
Lite/t/bug75976.t 0 → 100644
View
Lite/t/v4-num.t
View
MANIFEST
View
META.yml
View
Makefile.PL