in reply to hash size

$size = keys %somehash;

Will work just fine.

--
<http://www.dave.org.uk>

"Perl makes the fun jobs fun
and the boring jobs bearable" - me