in reply to Counting keys with defined or undefined elements in a hash
I always thought that using values created a new array (as opposed to using each, which didn't), but nobody mentioned it here, so I'm guessing I'm wrong. Is this something that used to be true but now isn't (and, if so, does anybody know as of what version), or am I just totally confoozled on this one?
I like the suggestion of a tied hash, but it could be problematic if it's possible for the values to change from undef to 1 (or vice versa).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Counting keys with defined or undefined elements in a hash (behaviour of values())
by Aristotle (Chancellor) on Jun 07, 2003 at 00:52 UTC | |
by Oberon (Monk) on Jun 07, 2003 at 01:56 UTC | |
by Aristotle (Chancellor) on Jun 07, 2003 at 02:04 UTC | |
by Oberon (Monk) on Jun 07, 2003 at 02:18 UTC | |
by Aristotle (Chancellor) on Jun 07, 2003 at 02:27 UTC | |
|