in reply to Array of structures within an array of structures.
Data::Dump output
my $classss = { classroom => { students => [ { age => 0, fn => 0, id => 0, ln => 0 }, { age => 1, fn => 1, id => 1, ln => 1 }, ], }, };
rehohy output( Re: Google decoder (how to access hash values, perl dereferencing string xpaths data dumper ) )
my %classrooms; $classrooms{classroom}{students}[0]{ln} = 0; #d3 $classrooms{classroom}{students}[0]{id} = 0; #d3 $classrooms{classroom}{students}[0]{age} = 0; #d3 $classrooms{classroom}{students}[0]{fn} = 0; #d3 $classrooms{classroom}{students}[1]{ln} = 1; #d3 $classrooms{classroom}{students}[1]{id} = 1; #d3 $classrooms{classroom}{students}[1]{age} = 1; #d3 $classrooms{classroom}{students}[1]{fn} = 1; #d3
See also references quick reference, hashes are curly
Re: How to traverse a two dimentional array in a constructor?, Re: Parsing SOAP::Lite results,, Re: Trouble accessing Hash of Arrays (troubleshooting basics),
Re^5: Combining 3 files,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Array of structures within an array of structures.
by Anonymous Monk on Sep 20, 2013 at 13:35 UTC |