%hash = (one => 'uno', two => 'dos', three => 'tres'); $input = ; chomp $input; if (exists $hash{$input}) { print $hash{$input}, "\n"; }