in reply to Re^2: Two dimensional array
in thread Two dimensional array

Well, that changes things. Sticking to the row/column view, you have arrays of columns. Are those column arrays equal in element number?
my @exists = grep { $temp_array[$_]->[0] eq $temp1 && $temp_array[$_]->[1] eq $temp2 } 0..$#{$temp_array[0]};

The resulting @exists will contain the indexes into the two anonymous arrays your @temp_array holds where the comparison values are at the same index.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}