in reply to Re: Re: Short circut operators in list context
in thread Short circut operators in list context
That's not the same, the asignment has more precedence than the or.my @c = @a or @b;
and it's evaluated in scalar context.perl -MO=Deparse,-p -e 'my @d = (@a or @b);' (my(@d) = (@a || @b)); -e syntax OK
|
|---|