in reply to Re^3: Summing Up Array Elements By Group
in thread Summing Up Array Elements By Group
$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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Summing Up Array Elements By Group
by ikegami (Patriarch) on Jan 21, 2009 at 19:39 UTC | |
by gwadej (Chaplain) on Jan 21, 2009 at 20:32 UTC |