|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re^8: Pre vs Post Incrementing variablesby repellent (Priest) |
| on Sep 13, 2010 at 06:09 UTC ( [id://859941]=note: print w/replies, xml ) | Need Help?? |
|
No, I made no implied justification thus far. The root of my reply was merely to reveal my experimentation with assigning the return of (++$i) to some value (since I also ran into the same error message you got). Then, I attempted to explain the snippet you posted so that others may find it helpful to see what's going on. My opinion? Yeah, the lvalue stuff is confusing and I don't quite see its usefulness. I would expect the behavior the OP expected.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||