if (exists $words{$inData}) { [download]
See exists.
In reply to Re: Getting values from a Hash from user input by GrandFather in thread Getting values from a Hash from user input by blueblue