in reply to Re: how do i find the index of a specific array value?
in thread How do I find the index of a specific array value?
my ($index) = grep $array[$_] eq $search_for, 0 .. $#array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Answer: how do i find the index of a specific array value?
by Anonymous Monk on Aug 12, 2014 at 05:53 UTC | |
|
Re: Re: Answer: how do i find the index of a specific array value?
by merlyn (Sage) on Apr 26, 2001 at 04:06 UTC |