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.
In reply to Re: array of hashes
by kyle
in thread array of hashes
by fionbarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |