in reply to array of hashes
my $child_count = scalar @{ $barry{children} }; foreach my $child ( @{ $bary{children} ) { print $child->{name}, "\n"; print $child->{age}, "\n"; # etc. }
See perlreftut, perlref, and References quick reference.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: array of hashes
by fionbarr (Friar) on Oct 02, 2008 at 15:31 UTC |