On Sep 10, Andrew Pimlott said:

>On Tue, Sep 04, 2001 at 08:52:11AM -0400, Jeff 'japhy/Marillion' Pinyan wrote:
>> And the difference is?  An array isn't the same as a list, but assigning
>> to an array is the same as assigning to a list.
>
>Consider the difference between
>
>    @a = (1, 2);
>
>and
>
>    ($a[0], $a[1], $a[2]) = (1, 2)

That is not the issue.  Assignment to an array is assignment to a list,
and behaves like a list assignment.  Just because it's a dynamically sized
list does not mean it's not a list.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **

Reply via email to