http://qs1969.pair.com?node_id=514219


in reply to lsearch for perl?

For list indexing, the solutions here should work fine. But check out How do I find the index of a specific array value?, too.