in reply to Re^13: If you believe in Lists in Scalar Context, Clap your Hands
in thread If you believe in Lists in Scalar Context, Clap your Hands
Let's go with the idea that it's the list assignment operator that is the only thing returning anything there. It returns to the scalar() built-in the count of elements in the list. What returns results to the list on the left, which receives as many results as there are elements present to take them? Isn't that also the list assignment operator? If it's returning something to scalar() and it's returning something to ( $x, $y ) as well, then you have a single operator returning two results in two different contexts within the same expression.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^15: If you believe in Lists in Scalar Context, Clap your Hands
by ikegami (Patriarch) on Oct 25, 2008 at 21:51 UTC | |
by mr_mischief (Monsignor) on Oct 25, 2008 at 22:27 UTC | |
by ikegami (Patriarch) on Oct 26, 2008 at 01:49 UTC | |
by BrowserUk (Patriarch) on Oct 26, 2008 at 03:59 UTC | |
by ikegami (Patriarch) on Oct 26, 2008 at 04:11 UTC | |
| |
by mr_mischief (Monsignor) on Oct 27, 2008 at 17:04 UTC |