%hash = (one => 'uno', two => 'dos', three => 'tres'); $input = ; chomp $input; if ($input = (keys %hash)) { print the value that matches the key of %hash; }