my @keys = qw {red blue red}; my @vals = (1, 2, 3); #### my %hash = ( red => [1, 3], blue => [2], )