my %hash; @hash{@monthly_temp, @temp} = 1; @monthly_temp = keys %hash;