Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

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


in reply to Shortest -return index of element in array- sub

sub i { pop ne $_[0] ? &i : $#_ }
Ahhh, recursion...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://66849]
help
Chatterbox?
erix counts their toes
[erix]: DBD::Pg 3.6.1 test has 'die;' then dies and fails wtf... (just below connect_database()
[erix]: I'm wondering what the idea could have been...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2017-05-23 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?