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,
In reply to Re: Array of structures within an array of structures.
by Anonymous Monk
in thread Array of structures within an array of structures.
by atu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |