$b++ makes a copy so that it can return the previous value. ++$b does not need to.
I have run into this issue before in C++, but it was normally not a problem for integers. Scalars on the other hand are a different beast.
In reply to Re^4: Summing Up Array Elements By Group
by gwadej
in thread Summing Up Array Elements By Group
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |