in reply to How can I find the number of elements in a hash?

You did that wrong, by the way. You wanted $size = @array, not $#array. And you want to call keys() in scalar context, like it's documented.

Replies are listed 'Best First'.
Re: Answer: Size of a hash
by Malkavian (Friar) on Mar 08, 2001 at 22:12 UTC
    My stupid mistake. RTFM strikes again. Thanks.