|Perl Monk, Perl Meditation|
Re^4: the basic datatypes, threeby davorg (Chancellor)
|on May 09, 2006 at 13:25 UTC||Need Help??|
assigning a list to a scalar variable returns the result as a total number of elements in a list
No. That's not right. Evaluating a list in a scalar context (by, for example, assigning it to a scalar) returns the last item in the list. Evaluating an array in scalar context returns the number of items in the array.
There is an important difference between a list and an array.
Update: Stupid typo fixed.
"The first rule of Perl club is you do not talk about