my @array = qw( your array here ); my $search_for = "here"; my( $index )= grep { $array[$_] eq $search_for } 0..$#array;
In reply to Re: how do i find the index of a specific array value?
by merlyn
in thread How do I find the index of a specific array value?
by BigVic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |