I really think the three key structure is best for this task as I have a very complicated structure.foreach my $key1 (sort keys %hash){ foreach my $key2 (sort keys %{$hash{$key1}}){ print "$key1\t$key2\t$hash{$key1}{$key2}\n"; } }
Thanksforeach my $key1 (sort keys %hash){ foreach my $key2 (sort keys %{$hash{$key1}} ){ foreach my $key3 (sort keys %{$hash{$hash{$key1}} } ){ print OFH "$key1\t$key2\t$key3\t$hash{$key1}{$key2}{$key3} +\n"; } } }
In reply to Hash with three keys by Jeri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |