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
In reply to Re: Re: Re: Short circut operators in list context
by Anarion
in thread Short circut operators in list context
by jweed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |