in reply to how to find an element in a table
# assume @a is your array my $pos; for my $i (0..$#a) { if ($a[$i] eq "Element_15") { $pos = $i; last; } }
$pos is either undef or the position of the first occurrence of "Element_15".
Hashes don't have any defined order to them, so the question doesn't make any sense if you are using a hash. If your "table" is an HTML table, that's a completely different situation.
|
|---|