http://qs1969.pair.com?node_id=11114300


in reply to Precedence for Idiots

The penultimate row of the table in the "Logical Questions" section seems incorrect to me.

$ perl -E '$x = 1 == 2 && 3; say $x;' $

This is what I would expect since 1 == 2 is clearly false so $x is false and the right hand side of the && is never evaluated. Perhaps you meant this instead:

$ perl -E '$x = 2 == 2 && 3; say $x;' 3 $

Now the first term is clearly true and the second term evaluates to 3 as intended.