Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my %count;
    grep { ++$count{$_} } qw(a b a c d d e f g f h h);
    print Dumper \%count;
    
  2. or download this
    $VAR1 = {
              'e' => 1,
    ...
              'f' => 2
            };