Suppose I have code that looks like this:

            my ($x, $y, $z) = (1, 2, 3);

            say "sorted backward" if ++$x > ++$y > ++$z;

 

Will $z be incremented even though the chained comparison is known to be
false after ++$x and ++$y are compared?

 

Joe Gottman


Reply via email to