I'm sure I read somewhere of a quicker way of doing it, but can't for the life of me find it.my $position; for ($position = 0; $position <= $#@array; $position++) { if ($array[$position] eq $value) { last; }#if }#foreach
In reply to Finding values position in array by cosmicperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |