![]() |
|
P is for Practical | |
PerlMonks |
Re^4: Pre vs Post Incrementing variablesby ikegami (Patriarch) |
on Sep 13, 2010 at 03:16 UTC ( [id://859935]=note: print w/replies, xml ) | Need Help?? |
You did, or rather the passage you quoted. The expressions whose order of evaluation is not defined are those that are operands. The order of those that aren't operands — those that are statements — is well defined. No, the list operator is not a unary operator.
It appears that Perl doesn't realise that ++$i returns an lvalue (thus the syntax error), but it does.
You understood what that code did, right? Troll. It's actually an imported function, fyi.
No, even if "it" was specified — it's currently left to right for all the operators involved — the results would be the same.
That's entirely possible.
Perl passes args by reference and C can't, so I don't see your point. It is equivalent to C++ allowing:
Which it does:
In Section
Seekers of Perl Wisdom
|
|