The empty list (), which evaluates to undef.
When's the last time you did if (()) {}? Why would you ever do that?
I suppose one could use sub f { return (); } if (f()) {}, but that's a very bad practice. (A sub that's expected to return a scalar should do so even in list context.)
So I'm rather baffled as to why this was mentioned. There are so many operators that can return false that would merit a mention before (), such as scalar assignment, list assignment, grep, map, m// and s///.
In reply to Re: Truth and Falsehood
by ikegami
in thread Truth and Falsehood
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |