How to get the index of an element in an array?

Viewed 42004

Does Perl have a build-in function to get the index of an element in an array? Or I need write such a function by myself? [ equivalent to PHP array_search() or JavaScript array.indexOf() ]

4 Answers
Related