Keep It Simple, Stupid | |
PerlMonks |
Re^5: Why is the execution order of subexpressions undefined? (sane?)by BrowserUk (Patriarch) |
on Apr 12, 2005 at 06:08 UTC ( [id://446863]=note: print w/replies, xml ) | Need Help?? |
Sub expressions are evaluated before the expressions they are a part of. Order of evaluation within a subexpression is in precedence order with ties broken left to right. In the expression you gave, both ( $y + 1 ) are subexpressions and would be evaluated before the overall expression, left to right. The fact that they are the same subexpression gives rise to the possible optimisation. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco.
Rule 1 has a caveat! -- Who broke the cabal?
In Section
Seekers of Perl Wisdom
|
|