Help for this page
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; }
%hash = ( 'a' => 1, ... 'f' ] );