- or download this
#!/usr/bin/perl
my %h;
my $val = $h{x}{y};
use Data::Dumper;
print Dumper \%h;
- or download this
$VAR1 = {
'x' => {}
};
- or download this
#!/usr/bin/perl
my %h;
%{$h{x}};
use Data::Dumper;
print Dumper \%h;
- or download this
$VAR1 = {};
- or download this
#!/usr/bin/perl -w
use strict;
...
keys %{$h{x}};
use Data::Dumper;
print Dumper \%h;
- or download this
$VAR1 = {
'x' => {}
};