in reply to Re^2: hash of hashes and memory space...
in thread hash of hashes and memory space...

Strange. When I use Data::Dumper, I get all the subhashes shown too. Example:

#!/usr/bin/perl use warnings; use strict; use Data::Dumper; my %hash= ( 4, {3,4,5,6,7,8}); $hash{a}{b}{c}{d}{e}=366; print Dumper(\%hash); #output: $VAR1 = { '4' => { '3' => 4, '7' => 8, '5' => 6 }, 'a' => { 'b' => { 'c' => { 'd' => { 'e' => 366 } } } } };

Maybe $Data::Dumper::Maxdepth is set to 1 in your script

Replies are listed 'Best First'.
Re^4: hash of hashes and memory space...
by bcarroll (Pilgrim) on Mar 24, 2010 at 14:54 UTC
    print Dumper(\%hash);

    You found my problem with Data::Dumper...

    I was using print Dumper(%hash);

    Thanks!