%hash=( key1 => [a,b,c,d,e,f], key2 =>[a,c,d,e,f], and o on... ); I want to compare key1[0] vs key2[0] key1[1] vs key2[1] and so on......