http://www.perlmonks.org?node_id=548417


in reply to Re: the basic datatypes, three
in thread the basic datatypes, three

What would happen if you assign a list value to a scalar variable?
And for this particular question the answer would be, the scalar get the size value of the list.

In your post, you keep mixing up list and array behaviour/context - or maybe you just misnamed "array" as "list".

see davorgs post further below to clarify the difference.

Cheers, Sören