Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by lindex (Friar)
on Mar 24, 2001 at 00:27 UTC ( #66731=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!perl 
    
    ...
    
    my(@array) = qw(foo bar crap stuff);
    print "$_: ".iA($_,@array),"\n" for(qw(foo dolsman crap));
    
  2. or download this
    /****************************/
      jason@gost.net, wh@ckz.org
        http://jason.gost.net
    /*****************************/
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://66731]
help
Chatterbox?
NodeReaper . o O ( Did I forget to leave the gas on? )

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2017-06-23 18:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (553 votes). Check out past polls.