Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: I've got a hash of hashes how do i get my values out

by C-Keen (Monk)
on Oct 02, 2001 at 20:04 UTC ( [id://116167] : note . print w/replies, xml ) Need Help??


in reply to I've got a hash of hashes how do i get my values out

Simple as stated in the Camel:
foreach $item (keys %hash){ print "$item: "; foreach $iteminitem (keys %{$hash{$item}}){ print "$iteminitem = $hash{$item}{$iteminitem} "; } print "\n"; }

Read the chapter on Data structures in the Camel book.

Happy coding,
C-Keen