Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Finding index of an entry in an Array

by snoopy (Deacon)
on Dec 07, 2007 at 03:48 UTC ( #655577=note: print w/replies, xml ) Need Help??


in reply to Re: Finding index of an entry in an Array
in thread Finding index of an entry in an Array

Also, List::MoreUtils has a first_index method:
use List::MoreUtils; my $input = 'qux'; my @repo = qw (foo bar qux); Print List::MoreUtils::first_index {$_ eq $input} @repo;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2018-09-21 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (183 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!