# retrieve a list of keys my @keys = keys %{ $Prod{ref261} }; # return the number of elements in the list my $count = scalar @keys; #### my $count = scalar keys %{ $Prod{ref261} }; #### my $count = keys %{ $Prod{ref261} };