Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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?
[shmem]: "the world"tm has become utterly silly.
[shmem]: let's look ahead and top that. I'm looking forward for perl7 implemented in PostScript

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2018-04-20 20:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?