Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: does not exist in an array

by mkirank (Chaplain)
on Mar 10, 2005 at 06:57 UTC ( #438175=note: print w/replies, xml ) Need Help??


in reply to does not exist in an array

if you want to search for more words u can use this

#!perl -slw my @values = qw( bcd efg hij klm ); my @values2 = qw ( abc bcd ); my %to_search; @to_search{@values} = (); my @found = grep { exists $to_search{$_} } @values2; print @found;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://438175]
help
Chatterbox?
[1nickt]: Question for my learned friends: is there a word meaning "CSV-like" i.e. I want to say that I accept CSV files, but the separator doesn;t have to be a comma. Or is that implicit these days?
[chacham]: dsv
[chacham]: dsv

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2017-07-22 18:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (340 votes). Check out past polls.