Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Answer: how do i find the index of a specific array value?

by hdp (Beadle)
on Apr 26, 2001 at 08:49 UTC ( [id://75716] : note . print w/replies, xml ) Need Help??


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.