in reply to Re: list context
in thread list context

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

Replies are listed 'Best First'.
Re^3: list context
by chromatic (Archbishop) on Dec 07, 2010 at 00:13 UTC

    In this case yes (I was too hasty in my explanation). The operator passes along the context in which it appears to its rhs expression.