http://qs321.pair.com?node_id=75716


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?

The last line should be ++$index until $a[$index] == $want or $want > $#a, and thanks to stephen for pointing this out.