Perl follows the C convention for the increment/decrement operators, or nearly so. ++$foo++ is undefined because only one *-ment op is allowed per variable in a statement. Would you like that to do (++$foo)++, or ++($foo++) ? It would make a difference, but there is nothing in the grammar to distinguish them.
After Compline,
Zaxo
In reply to Re: Pre-increment *and* Post-increment
by Zaxo
in thread Pre-increment *and* Post-increment
by cog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |