It's useful to look at this snippet to help understand what's happening:
$r = ($x, $y) = (1..10);
If we look at @r = () = 1..10 we will see that the right hand assignment assigns to no lvalues and so returns an empty list. And thus @r is empty.
TGI says moo
In reply to Re^3: If you believe in Lists in Scalar Context, Clap your Hands
by TGI
in thread If you believe in Lists in Scalar Context, Clap your Hands
by gone2015
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |