I don't think there is a good way to explain the default behavior of a list in scalar context, because there are too many ways to create lists in Perl and too many ways to enforce scalar context.
What does a list do in scalar context provided by scalar assignment?
What does a list do in scalar context provided by the scalar operator?
What does a list do in scalar context provided by any other infix operator?
What does a list do in scalar context provided by the prototype of an operator?
I might be missing some (hash key?).
|