- or download this
%ha = $obj -> passhash;
foreach $key (keys (%ha)){
if ($key eq "problem2"){
...
}
}
}
- or download this
foreach my $arr_ref (@$ha{'problem2'}) {
print "subarray: @{$arr_ref} \n";
}
- or download this
my %hash;
@hash{qw/one two three/} = qw/1 2 3/;