By analogy, in this: f( ++$n , ++$n ), the operands of the comma operator should be the results of the preincrement subexpressions.By the same logic in f($n) f should be passed the result (value) of $n, disallowing f from modifying $n.
Perl doesn't work that way.
In reply to Re^8: Pre vs Post Incrementing variables
by JavaFan
in thread Pre vs Post Incrementing variables
by SavannahLion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |