in reply to Truth and Falsehood
Thanks for this useful node.
- An empty array, which evaluates to the number of elements it contains, i.e. zero (0).
- An empty hash, which evaluates to a false value when it is empty.
I've tested empty hashes on several perls here and they, like empty arrays, always appear to evaluate to zero as well. Is there a reason why you have expressed them differently here?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Truth and Falsehood
by haukex (Archbishop) on Aug 17, 2019 at 10:12 UTC | |
by hippo (Archbishop) on Aug 17, 2019 at 10:19 UTC | |
by haukex (Archbishop) on Aug 17, 2019 at 10:30 UTC |