Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    Math::HashSum 0.02

    Download button

    No screenshots available
    Downloads: 340  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Excellent (5.0/5)
    2 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    David James | More programs
    Perl Artistic License / FREE
    August 9th, 2007, 08:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Math::HashSum description

    Math::HashSum can sum a list of key-value pairs on a per-key basis.

    Math::HashSum can sum a list of key-value pairs on a per-key basis.

    SYNOPSIS

    use Math::HashSum qw(hashsum);

    my %hash1 = (a=>.1, b=>.4);
    my %hash2 = (a=>.2, b=>.5);
    my %sum = hashsum(%hash1,%hash2);

    print "$sum{a}n"; # Prints .3
    print "$sum{b}n"; # Prints .9

    This module allows you to sum a list of key-value pairs on a per-key basis. It adds up all the values associated with each key in the given list and returns a hash containing the sum associated with each key.

    The example in the synopsis should explain usage of the module effectively.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    key-value pairs | sum key-value pairs | Perl module | mathematical | hash | sum

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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