#if ( exists($hash{$key} ) ) { # # .. #} $hash{"Name"} = "A"; $hash{"Address"} = "B"; $hash{"City"} = "C"; if ( exists($hash{"City"} ) ) { print 'exists'; }