in reply to Re: Search string within an predefined arrayin thread Search string within an predefined array
if (exists $d{$dfs}) { [download]
It's a moot point in this example since all the values are 1; but relevant if your values could be zero...