%hash = ("abc" => "1", "def" => "2", "ghi" => "3", ); #### if($match =$hash{$input}) { print "MATCHED VALUE IS \"$match\"...\n"; }