Boolean context is a species of a scalar context. Thus, consider what happens to a list when it is placed into a scalar context.
$ perl -e 'if (()) { print "yes" } else { print "no" }' no
In reply to Re: An empty list in boolean context?
by herveus
in thread An empty list in boolean context?
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |