my %hash=("111"=>"one", "222"=>"two"); if (defined($hash{"111"})) { print "\nfound"; }