Problems? Is your data what you think it is? | |
PerlMonks |
Re^5: $1 not "freezing" in an additionby ikegami (Patriarch) |
on Dec 17, 2012 at 13:12 UTC ( [id://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
|
|