in reply to Re: Auto Increment "magic" Inquiry
in thread Auto Increment "magic" Inquiry
Consider $i++ + $i
The 2nd $i could be either the incremented value or the unincremented value. Parentheses won't change that, because the increment happens at some undefined time. The value of $i++ is defined as the unincremented value, but if you use $i elsewhere in the same statement, Perl does not guarantee you what its value will be.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Auto Increment "magic" Inquiry
by jettero (Monsignor) on Jan 05, 2007 at 17:52 UTC |