Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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

by arhuman (Vicar)
on Mar 21, 2001 at 19:10 UTC ( #66032=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

sub indexArray(@) { 1 while $_[0] ne pop; $#_; }
Saves One char...
Could be applied to some of the other solutions (jmcnamara) too...

"Trying to be a SMART lamer" (thanx to Merlyn ;-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://66032]
[karlgoethebier]: Hi mario
[marioroy]: Hi karlgoethebier.
[karlgoethebier]: "Long time No See" ;-)
[marioroy]: Yes. I've been working on MCE and MCE::Shared. These are completed and released. MCE 1.830 and MCE::Shared 1.831. Saw the LWP::Simple and P::FM thread and thought to help out.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2017-09-23 15:52 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (272 votes). Check out past polls.