Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How to I check if a value is present in an array?

by rjt (Deacon)
on Aug 03, 2013 at 11:19 UTC ( #1047697=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    
    my %gl; @gl{@gl} = undef; # Efficient lookups
    say for grep { exists $gl{$_} } @genes;
    
  2. or download this
    two
    three
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1047697]
help
Chatterbox?
[Tux]: and/or store the whole conversation in a DB_File or somesuch (configurable) and re-load on re-start

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2017-09-20 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (233 votes). Check out past polls.

    Notices?