At 04:21 PM 06/21/2001 -0400, Timothy Kimball wrote:
>
>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'.


Methinks you actually /validated/ Randal's post, not contradicted it ;)

Randal said:
>Ahh, there's HUGE difference between
>
>        list assignment _in_ scalar context
>
>and
>
>        list assigned _to_ [a scalar]

So your example would fit in the "list assignment _in_ scalar context"
category...the keyword being "assignMENT", and not "assignED"

aloha,
mel


____________________________________________________________
mel matsuoka                      Hawaiian Image Productions
Chief Executive Alphageek                (vox)1.808.531.5474
[EMAIL PROTECTED]                    (fax)1.808.526.4040
                     

Reply via email to