http://qs321.pair.com?node_id=337428


in reply to Re: Short Circuit Operator and Hash Assignment
in thread Short Circuit Operator and Hash Assignment

The 1 && part is being optimized out of the statement.
this seems a rather dangerous and naive optimization to me, given that also this:
$x = 1 && $y = 2; $x = 0 || $y = 2;
gets "optimized" as:
$x = $y = 2; $x = $y = 2;
perhaps the p5p people should do something about it.

cheers,
Aldo

King of Laziness, Wizard of Impatience, Lord of Hubris