# exists ( $hash{$key} ) $State = 'QC'; # Quebec, Canada if (exists($StateName{$State})) { print "The abbreviation for $State is " . $StateName{$State} . "\.\n\n"; } else { print $State . " is not a state! (yet)\n\n"; }