Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Net::IPv4Addr 0.10

    Download button

    No screenshots available
    Downloads: 365  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Francis J. Lacoste | More programs
    Perl Artistic License / FREE
    July 27th, 2006, 11:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Net::IPv4Addr description

    Net::IPv4Addr is a Perl extension for manipulating IPv4 addresses.

    Net::IPv4Addr is a Perl extension for manipulating IPv4 addresses.

    SYNOPSIS
    use Net::IPv4Addr qw( :all );

    my ($ip,$cidr) = ipv4_parse( "127.0.0.1/24" );
    my ($ip,$cidr) = ipv4_parse( "192.168.100.10 / 255.255.255.0" );

    my ($net,$msk) = ipv4_network( "192.168.100.30" );

    my $broadcast = ipv4_broadcast( "192.168.100.30/26" );

    if ( ipv4_in_network( "192.168.100.0", $her_ip ) ) {
    print "Welcome !";
    }

    etc.

    Net::IPv4Addr provides functions for parsing IPv4 addresses both in traditional address/netmask format and in the new CIDR format. There are also methods for calculating the network and broadcast address and also to see check if a given address is in a specific network.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    IPv4 addresses | manipulate adress | manipulate IP | Net::IPv4Addr | manipulate | IP

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM