Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Shortest -return index of element in array- sub

by MeowChow (Vicar)
on Mar 24, 2001 at 23:59 UTC ( #66890=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub i {
      pop eq $_[0] ? @_-1 : (), $#_ ? &i : ()
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://66890]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2016-09-27 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (507 votes). Check out past polls.