The or operator always returns a scalar.
No, only the LHS operand is evaluated in scalar context. The RHS inherits.
>perl -E"@a=qw( a b c ); say( 0 or @a );" abc
In reply to Re^2: map BLOCK evaluation context
by ikegami
in thread map BLOCK evaluation context
by vsespb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |