Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^5: If you believe in Lists in Scalar Context, Clap your Handsby JavaFan (Canon) |
on Oct 24, 2008 at 00:41 UTC ( [id://719211]=note: print w/replies, xml ) | Need Help?? |
The difference between
and is that $s1 gets assigned the result of the list assignment operator, and $s2 gets assigned the result of the scalar comma operator. In neither case there's a list assigned to any of the $s? variables; in both cases the result of operators are assigned. But as long as you keep believing in the existence of lists in scalar context, you'll keep being confused.
In Section
Meditations
|
|