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