in reply to Re^6: Finding the index of a specific element in an array.
in thread Finding the index of a specific element in an array.
In list context, it returns a list of values counting (up by ones) from the left value to the right value.How's that different from for (my $i = 0; $i < @array; $i++) which also says to count by one, from the left value up to the right value?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Finding the index of a specific element in an array.
by chromatic (Archbishop) on Jan 25, 2012 at 21:14 UTC |