Withh a hash you can do 
 
if(exists $hash{$key}) { ... }
 
is there a way to do that with arrays?
IE
if there is an array element that is 'bob' then do this ::
without having to do a foreach on the array
 
basically an easier/better/faster/ way to do this :
 
@search_for_these = ....
@search_me = ....
 
foreach $search_for(@search_for_these) {
    foreach $entry(@search_me) {
        if($entry eq $search_for) { print "I match!!"; }
    }    
}
 
 


Reply via email to