In this one record or in all records?
my $kids= scalar @{$rec[0]{kids}};
If you want the sum of kids in all records you just have to add a loop around that line:
my $kids; foreach my $record (@rec) { $kids+= scalar @{$record->{kids}}; }
In reply to Re: print array of hashes
by jethro
in thread print array of hashes
by fionbarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |