my $key = 'key01'; if ($hash{$key}) { print "$key is in hash"; }