in reply to inner anonymous hash
push @{$hash{$key}}, { $valname => [ $value, $type, $flag ] };
You could then cycle over the structure like this:
foreach my $i(keys %hash) { print "i=$i\n"; foreach my $j(@{$hash{$i}}) { my ($valname) = keys %{ $j }; print "valname = $valname\n"; print "content = ", $j->{$valname}[0], "\n"; # etc. } }
|
|---|