> 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!!"; }
>     }    
> }

perldoc -f grep
or just us a hash :)


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to