Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re (tilly) 1: Shortest -return index of element in array- sub

by tilly (Archbishop)
on Mar 22, 2001 at 05:57 UTC ( #66219=note: print w/replies, xml ) Need Help??


in reply to Re: Shortest -return index of element in array- sub
in thread Shortest -return index of element in array- sub

If the contest is for an index and not the reverse index, then the above solution is correct. But the offerings that use pop will find the last match in the array rather than the first.
  • Comment on Re (tilly) 1: Shortest -return index of element in array- sub

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://66219]
help
Chatterbox?
[jedikaiti]: 'ello Monks
[hok_si_la]: bueno

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2017-09-22 16:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (264 votes). Check out past polls.

    Notices?