Randal L. Schwartz wrote:
: ...
: Second might mean something like:
: 
: $foo_length = SOME_LIST # although this can't happen
:               ========= list
:             =           assigned to
: ===========             scalar
: 
: See the difference?  And the latter can't happen.

Sure it can. Well, the list itself doesn't get assigned to the scalar,
but an assignment does get made: The last element of SOME_LIST to
$foo_length. So

my $number_of_pets = ('dog','cat','iguana');

sets $number_of_pets to 'iguana'.

-- tdk

Reply via email to