The assignment operator itself happens to be both in scalar and in list context. It produces both a list for the list, and a scalar for the function scalar().
You'll have to explain that. If it returns two values, what are they? How does it collapse into one value? How can you select which value you want? You're clearly speaking conceptually because that's not how perl is coded at all. So what advantages does your concept have?
In reply to Re^13: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |