⭐ in reply to How do I find the index of a specific array value?
my @array = qw( your array here ); my $search_for = "here"; my( $index )= grep { $array[$_] eq $search_for } 0..$#array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Answer: how do i find the index of a specific array value?
by japhy (Canon) on Apr 26, 2001 at 04:04 UTC | |
by Anonymous Monk on Aug 12, 2014 at 05:53 UTC | |
by merlyn (Sage) on Apr 26, 2001 at 04:06 UTC | |
|
Re: Answer: how do i find the index of a specific array value?
by fenners (Beadle) on Aug 02, 2001 at 22:20 UTC | |
by fenners (Beadle) on Aug 03, 2001 at 17:03 UTC |