in reply to alpha vs alpha numeric

Do you actually intended to use regular expression?
I think you intended to use just usual comparision 'eq':
if (($ref->{prodname} eq ($value)) || ($ref->{key1} eq ($value)))
Vadim.