in reply to double hash, array, and hashed data structure
Data::Dumper is your friend, in viewing these structures.# Using hash-ref assignment: $tempa{a}{zeta} = {nm=>'abc', sz=>'def'}; # Using Hash slice -- @{$tempa{a}{zeta}}{qw[nm sz]} = qw[abc def]; #Resulting structure: #= { # 'a' => { # 'zeta' => { # 'sz' => 'def', # 'nm' => 'abc' # } # } # };
"As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: double hash, array, and hashed data structure
by Anonymous Monk on Mar 13, 2008 at 05:25 UTC |