in reply to Re^3: eval order of args to a sub
in thread eval order of args to a sub
Post-increment seems to be unique in that it creates an anonymous value.That doesn't suprise me. post-increment and post-decrement return (a copy of) the old value, while changing the original value. What I mean is, since post-*crement creates 2 values from one variable, you need a copy somewhere, and it makes sense (for ease of coding and performance - perl variables are passed by reference internally) to increment the original value and create a copy as the return value of the *crementation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: eval order of args to a sub
by TGI (Parson) on May 31, 2007 at 00:29 UTC |