Try
foreach my $key (keys %Hash) { push @hasharraylengths, scalar @{$Hash{$key}}; }
The idea : $Hash{$key} is an array reference. Dereference, with @{}, and force scalar ccntext with scalar.
HTH
In reply to Re: Array length within a hash
by arturo
in thread Array length within a hash
by TStanley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |