It will, because the high-precedence or operator (||) imposes scalar context on its operands and evaluates to a scalar.
Only on the LHS.
use feature qw( say ); my @s = 0 || scalar('a','b','c'); my @l = 0 || ('a','b','c'); say for @s; say "---"; say for @l;
c --- a b c
In reply to Re^2: list context
by ikegami
in thread list context
by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |