Assigning anonymous hash to a list

Yitzchak Scott-Thoennes sthoenna at
Tue Jul 30 22:43:56 BST 2013

On Tue, Jul 30, 2013 at 2:32 PM, Joseph Werner <telcodev at> wrote:
> On Tue, Jul 30, 2013 at 4:51 PM, Abigail <abigail at> wrote:
>> By that argument, this is a scalar assignment as well:
>>   my ($i1, $i2, $i3) = (4, 5, 6);
> No, What you have done here is to assigned a list value to an array of
> assignable elements.

There is *no* array anywhere there.  There are two lists, though.

> I am talking about the example at the top of this thread, which was a
> scalar assignment to a list of elements.

I can see what you mean when you say that, but it is not correct terminology.

Perl has two assignment operations, list assignment, and scalar assignment.
Which it is is determined purely based on what is on the left of the assignment.

More information about the mailing list