Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    
    ...
    map { $count{$_}++ } @fruits;
    
    print Dumper(\%count);
    
  2. or download this
    $VAR1 = {
              'GRAPES' => '1',
    ...
              'BANANA' => '1',
              'MANGO' => '5'
            };