Finding index of an entry in an Arrayby monkfan (Curate)
|on Dec 07, 2007 at 01:47 UTC||Need Help??|
monkfan has asked for the
wisdom of the Perl Monks concerning the following question:
Dear fellow monks,
For example I have an array as a repository and string as input.
What's the compact way to find the index of 'bar' in @repo, such that finally it returns '2' (index in @repo).