Doug Johnson wrote:
> 
> Is there a similar way to find the number of keys in a hash without cycling
> through them and without assigning the hash to an array?

        Dunno if you can avoid counting them, but $keycount = keys(%hash) will
do what you want.  Hopefully there's an optimization somewhere in Perl's
guts for this sort of thing :)

Cheers,
- Matt

Reply via email to