- or download this
perl -MData::Dumper -e 'my %h; print "yes\n" if exists $h{d}{j}; print
+ Dumper \%h;'
$VAR1 = {
'd' => {}
};
- or download this
if(defined $h{d} && exists $h{d}{j}) {...}
- or download this
my %hash;
$hash{d}{j} = 'foo';
- or download this
my %hash;
$hash{d} ||= {};
$hash{d}{j} = 'foo';