An array is a list object in which all elements are indexed.
A list is the context to which arrays belong. An list does not have to be 
referenced through an array and may be used as part of many functions.


@array = (item1, item2, item3);
# a list of items are assigned to an array.

print $item1,$item2,$item3,"\n";
#print uses a list as its arguments

----Original Message Follows----
From: "baby lakshmi" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: diff bet list and an array
Date: Mon, 09 Jul 2001 16:48:42 +0530
MIME-Version: 1.0
X-Originating-IP: [202.9.162.194]
Received: from [209.85.157.220] by hotmail.com (3.2) with ESMTP id 
MHotMailBD12DE32005440043256D1559DDC0A620; Mon, 09 Jul 2001 04:19:14 -0700
Received: (qmail 90367 invoked by uid 1005); 9 Jul 2001 11:19:09 -0000
Received: (qmail 90352 invoked from network); 9 Jul 2001 11:19:08 -0000
Received: from f123.law7.hotmail.com (HELO hotmail.com) (216.33.237.123)  by 
onion.valueclick.com with SMTP; 9 Jul 2001 11:19:08 -0000
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; 
Mon, 9 Jul 2001 04:18:42 -0700
Received: from 202.9.162.194 by lw7fd.law7.hotmail.msn.com with HTTP;   Mon, 
09 Jul 2001 11:18:42 GMT
>From beginners-return-6363-kaihen Mon, 09 Jul 2001 04:20:23 -0700
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Post: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <mailto:[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
X-OriginalArrivalTime: 09 Jul 2001 11:18:42.0120 (UTC) 
FILETIME=[E8F6E480:01C10868]
X-Spam-Rating: onion.valueclick.com 1.6.2 0/1000/N



Thank you for your mail.
then can u tell me, what does the following line mean (this is from perl
style)

"To get the last element in a list or array, use $array[-1] instead of
$array[$#array]. The former works on both lists and arrays, but the latter
does not."

Thank you
REgards
babylakshmi
>From: Aaron Craig <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: diff bet list and an array
>Date: Mon, 09 Jul 2001 13:08:58 +0200
>
>At 16:30 09.07.2001 +0530, baby lakshmi wrote:
>>hi,
>>What is the difference between list and an array??
>>May be this very small question. but i would like to know the difference.
>>The help in this regard is appreciated.
>>Thank you
>>Regards
>>babylakshmi
>
>There isn't one.
>
>
>Aaron Craig
>Programming
>iSoftitler.com
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Reply via email to