Softpedia
 


LINUX CATEGORIES:



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

    Net::Subnet::Count 1.20

    Download button

    No screenshots available
    Downloads: 303  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Luis E. Munoz and Alvaro Carvajal | More programs
    Perl Artistic License / FREE
    February 3rd, 2009, 12:48 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Net::Subnet::Count description

    Count hosts in named subnets

    Net::Subnet::Count is a Perl module to count hosts in named subnets.

    SYNOPSIS

     use Net::Subnet::Count;
     use IP::Address;

     my $counter = new Net::Subnet::Count;

     $counter->add('subnet-00', new IP::Address("10.0.0.0/24"));
     $counter->add('other', @array_of_ip_addresses);
     $counter->add('other', @another_array_of_ip_addresses);

     $counter->cache(10);

     $counter->count(new IP::Address("10.0.3.17"));
     $counter->count(@array_of_ip_addresses);

     $counter->valcount(new IP::Address("10.0.3.17"), 23);
     @array_of_ipaddr_and_values = (new IP::Address("10.0.3.17"), 23,
     new IP::Address("101.0.23.107"), 2);
     $counter->valcount(@array_of_ipaddr_and_values);

     my $r_count = $counter->result;

     foreach my $subnet (keys %{$r_count}) {
     print "Subnet $subnet had ", $r_count->{$subnet}, " visits.
    ";
     }


    This module implements a symplistic way to match individual IP Addresses to subnets. It can be used to, among other things, help analyze HTTPD logs.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    host counter | Perl module | Perl | host | counter

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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