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

Re: check if an element exists in array

by FunkyMonk (Chancellor)
on Apr 19, 2008 at 08:38 UTC ( [id://681631]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @names = (
        [ qw/Jim     12/ ],
    ...
    for ( grep { $_->[0] eq $name } @names ) {
        print "@$_\n";
    }
    
  2. or download this
    Jim's in the list
    Jim 12
    Jim 57
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-24 18:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found