Keep It Simple, Stupid | |
PerlMonks |
Re^2: Perl odditiesby fergal (Chaplain) |
on Mar 01, 2005 at 16:04 UTC ( [id://435497]=note: print w/replies, xml ) | Need Help?? |
Update: Nonsense below, I misread the post.
It would be much more useful, or sensible, if hash in a scalar context returned the number of keys:As soon as you try to use it as a number, "2/8" will be numified to 2 so actually it does effectively return the number keys. The number of buckets is some bonus info for free.
In Section
Meditations
|
|