If you can't have a list in a scalar context, how can you have the assignment of a list in scalar context? You have even said in this thread that lists don't even exist.
The list assignment imposes a list context on its operands. So while the list assignment is in scalar context, the assignee and assigned lists aren't.
A B C D <-- labels $x = ( $i, $j ) = ( $p, $q ); S ? L L L S L L L <-- context | | | | | | | | \__ Propogated by right-most list op'tor (D). | | | | | | | \____ Imposed by the list assignment (C). | | | | | | \______ Propogated by right-most list op'tor (D). | | | | | \__________ Imposed by the scalar assignment (A). | | | | \_______________ Propogated by left-most list op'tor (B). | | | \__________________ Imposed by the list assignment (C). | | \___________________ Propogated by left-most list op'tor (B). | \_______________________ Determined by outside code. \__________________________ Imposed by scalar assignment (A).
In reply to Re^9: If you believe in Lists in Scalar Context, Clap your Hands
by ikegami
in thread If you believe in Lists in Scalar Context, Clap your Hands
by gone2015
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |