Scalar assignment in sub: 1: scalar context # shouldn't this be void context? 2: scalar context # shouldn't this be void context? 3: scalar context $x = apples
It should be void, but it can't due to the way context is determined where it can vary at run-time. Known bug, but it can't readily be fixed.
In reply to Re^7: Confused as to why the "casting context" is mis-behaving (void,void,scalar)
by ikegami
in thread Confused as to why the "casting context" is mis-behaving
by kiz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |