http://www.perlmonks.org?node_id=655586


in reply to Finding index of an entry in an Array

Wanting to do this is often a clue that you shouldn't have been using an array in the first place.