Help for this page

Select Code to Download


  1. or download this
    use List::Util 'reduce';
    
    ...
    my %hash = (foo => 'bar', baz => 1, fiddle => 'faddle');
    
    print hash_char_count(%hash), "\n";
    
  2. or download this
    # ... 
    
    ...
    # ...
    
    print hash_char_count(\%hash), "\n";