in reply to Getting values from a Hash from user input

if (exists $words{$inData}) {

See exists.

True laziness is hard work