my $count = keys %{ $testHash{$year} }
It might be better not to output the comma, though. Just invert the logic and print it before each sequence except the first one which is easy to detect:
my $first = 1; while (...) { print ',' unless $first; undef $first; print "..."; # print the sentence }
In reply to Re: Size of a HASH (with more keys)
by choroba
in thread Size of a HASH (with more keys)
by David92
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |