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!!"; }
}
}
- Re: if exists with array Dan Muey
- Re: if exists with array Janek Schleicher
- Re: if exists with array Felix Geerinckx
- Re: if exists with array Felix Geerinckx
- Re: if exists with array Janek Schleicher
- RE: if exists with array Kipp, James
- RE: if exists with array Kipp, James
