in reply to hash size
$size = keys %somehash; [download]
Will work just fine.
"Perl makes the fun jobs fun and the boring jobs bearable" - me