Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    my %hash = ( 'a'=>1, 'b'=>2, 'c'=>3, 'd'=>4, 'e'=>4, 'f'=>4);
    my %by_value = flip(%hash);
    ...
                        $k while (($k,$v) = each %foo); 
        return %hash;
    }
    
  2. or download this
    %hash = (
              'a' => 1,
    ...
                         'f'
                       ]
                );