in reply to Re^6: Counting keys with defined or undefined elements in a hash (behaviour of values())
in thread Counting keys with defined or undefined elements in a hash
Well that's lame.
> ... and requires a function call for every pair in the hash, rather than a single one for all of them.Right; I hadn't considered that.
> It does use less memory though, yes, that's what I meant when I said it's desirable when dealing with large hashes.Ah, good, then I'm not completely insane. :-) I had switched from values to each on an ETL project last year, and I was remembering that I'd done it for speed reasons, but now that I think about it, it may very well have been for memory purposes instead.
Thanx for the clarifications.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Counting keys with defined or undefined elements in a hash (behaviour of values())
by Aristotle (Chancellor) on Jun 07, 2003 at 10:17 UTC | |
by Oberon (Monk) on Jun 13, 2003 at 18:52 UTC |