|
|
| No such thing as a small change | |
| PerlMonks |
Re^2: can sub check context for lvalue vs rvalue context?by haukex (Archbishop) |
| on May 09, 2018 at 08:20 UTC ( [id://1214260]=note: print w/replies, xml ) | Need Help?? |
|
What would your wantlvalue return if called this way: @x = x() = 5;? I think operator associativity can help answer that one:
So I'd say that x() is
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||