![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: hashes of array referencesby davorg (Chancellor) |
on Jul 22, 2009 at 19:19 UTC ( #782415=note: print w/replies, xml ) | Need Help?? |
This isn't doing what you think it is. Evaluating a hash in scalar context is rarely useful. They don't work the same way as arrays. What you really want is to call keys in scalar context. That will give you the number of keys in the hash.
In Section
Seekers of Perl Wisdom
|
|