|
|
| Do you know where your variables are? | |
| PerlMonks |
Re^5: $1 not "freezing" in an additionby ikegami (Pope) |
| on Dec 17, 2012 at 13:12 UTC ( #1009163=note: print w/ replies, xml ) | Need Help?? |
|
lvalue context has nothing to do with scalar/void/list context. lvalue and lvalue context are not the same thing. An lvalue context is a context where an expression must produce an lvalue. In contrast, an rvalue context is a context where code may produce an rvalue. Example of lvalue contexts:
No, it's stupid to do $x = "$1";. ...though I admit the lvalue context is not sufficient (e.g. $bar = "$1" + foo();).
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||