Desired effect Example: IN: Array of Arrays: (0=>(a,b,e,d), 1=>(a,b,c,f), 2=>(d,h,f), 3=>(d,i,g)) OUT: Hash: $out{a}{b}{e} = d $out{a}{b}{c} = f $out{d}{h} = f $out{d}{i} = g