A hash in scalar context returns such a string, as pointed out in perldata: "the number of used buckets and the number of allocated buckets"
If you want the number of elements, use keys in scalar context.
--In reply to Re: Scaler of a hash, odd problem
by fruiture
in thread Scaler of a hash, odd problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |