I meant to mention a binary search would be faster, but that would require @array to be sorted.
In reply to Re^2: Returning position? by ikegami in thread Returning position? by theoya