> my question is how do I access and print all values? I am trying: > > foreach (keys %dub_hash) { > print %{$dub_hash->{$name}->{$uid}->{%gid}->{$gecos} }; > } > > Do I need three loops? What am I doing wrong?
Yup, three loops. I'll get you started: for my $name (keys %dub_hash) { for my $uid (keys %{$dub_hash{$name}}) { # do stuff, note the %{...} above to force precedence } } Ok thank you! So if I have a HoHoHoH I would need 4 loops and so on? Is there a good tutorial for hashes with real world examples b/c I seem to struggle with comples data structures as the above took me longer than expected. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com