NetAddr::IP::Lite

NetAddr::IP::Lite is a Perl module that manages IPv4 and IPv6 addresses and subnets.
Download

NetAddr::IP::Lite Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Luis E. Muoz and Michael Robinton
  • Publisher web site:
  • http://search.cpan.org/~luismunoz/NetAddr-IP-4.007/Lite/Lite.pm

NetAddr::IP::Lite Tags


NetAddr::IP::Lite Description

NetAddr::IP::Lite is a Perl module that manages IPv4 and IPv6 addresses and subnets. NetAddr::IP::Lite is a Perl module that manages IPv4 and IPv6 addresses and subnets.SYNOPSIS use NetAddr::IP::Lite qw( Zeros Ones V4mask V4net :aton :old_nth ); my $ip = new NetAddr::IP::Lite '127.0.0.1'; print "The address is ", $ip->addr, " with mask ", $ip->mask, "n" ; if ($ip->within(new NetAddr::IP::Lite "127.0.0.0", "255.0.0.0")) { print "Is a loopback addressn"; } # This prints 127.0.0.1/32 print "You can also say $ip...n"; The following four functions return ipV6 representations of: :: = Zeros(); FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF: = Ones(); FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:: = V4mask(); ::FFFF:FFFF = V4net();Requirements:· PerlINSTALLATIONUn-tar the distribution in an appropriate directory and type: perl Makefile.PL make make test make installNetAddr::IP::Lite depends on NetAddr::IP::Util which installs by default with its primary functions compiled using Perl's XS extensions to build a 'C' library. If you do not have a 'C' complier available or would like the slower Pure Perl version for some other reason, then type: perl Makefile.PL -noxs make make test make install


NetAddr::IP::Lite Related Software