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?
In reply to Re: Truth and Falsehood
by hippo
in thread Truth and Falsehood
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |