in reply to difficulty with complicated (for me) hashes

No there's only one (nested) hash. %test To print a hash for debugging: print "@{%hash}\n"; from that you'll get back references to the contained hashes, so really you want to loop through the hash keys foreach my $key (keys %test) { my $ref = $test{$key}; } to get the references $ref, then dereference that foreach my $nextkey (keys %$ref) { my $nextref = $test{$key}{nextkey}; } As you know the depth of hashing you can avoid using the ref() function to determine if a reference or a scalar vale has been returned by $test{$key}.
  • Comment on Re: difficulty with complicated (for me) hashes

Replies are listed 'Best First'.
Re^2: difficulty with complicated (for me) hashes
by u671296 (Sexton) on Dec 18, 2008 at 23:44 UTC
    Oooops sorry the formatting screwed up. Yes Data::Dumper is probably more what you really need.
Re^2: difficulty with complicated (for me) hashes
by o2bwise (Scribe) on Dec 19, 2008 at 03:13 UTC
    Thanks, man! I'm good.

    Tony