Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: hashes of hashes

by sara2005 (Scribe)
on Jul 15, 2006 at 12:47 UTC ( [id://561433] : note . print w/replies, xml ) Need Help??


in reply to hashes of hashes

You might find the documentation on perldsc helpful to understand the HoH.

foreach my $key( keys %people ) { print "\nKey is $key:\n"; foreach my $element ( keys %{$people{$key}} ) { print "\t$element", "= $people{$key}{$element}\n"; } }