On Mon, Jul 09, 2001 at 02:36:27PM +0200, Aaron Craig wrote:
>
> Which is exactly my point. I've been hanging around this list a while, and
> programming Perl for a lot longer, and this is the first time the issue has
> ever come up -- I admit that I didn't even know there was a difference
>
in short, an array is inadvertently a list, a list is not necessarily an
array.
just contemplate this, something i'm sure we've all used:
use vars qw($bar $baz)
this is very much a list, but not an array
hth,
Jos Boumans
> You are correct -- I should have read the documention :) However, in
At 04:29 09.07.2001 -0800, Michael Fowler wrote:
>On Mon, Jul 09, 2001 at 01:59:28PM +0200, Aaron Craig wrote:
> > You are correct -- I should have read the documention :) However, in
> every
> > day programming-speak, list and array get tossed about in such a way that
> > they become synonymous
On Mon, Jul 09, 2001 at 01:59:28PM +0200, Aaron Craig wrote:
> You are correct -- I should have read the documention :) However, in every
> day programming-speak, list and array get tossed about in such a way that
> they become synonymous.
They shouldn't be. The distinction can be important (
$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-Ver
On Mon, Jul 09, 2001 at 01:59:28PM +0200, Aaron Craig wrote:
>
> You are correct -- I should have read the documention :) However, in every
> day programming-speak, list and array get tossed about in such a way that
> they become synonymous. A list and an array seem to be effectively the
> s
At 14:53 09.07.2001 +0200, Paul Johnson wrote:
>On Mon, Jul 09, 2001 at 04:48:42PM +0530, baby lakshmi wrote:
> > >>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.
> > >
On Mon, Jul 09, 2001 at 04:30:26PM +0530, baby lakshmi wrote:
> What is the difference between list and an array??
> May be this very small question. but i would like to know the difference.
There is a difference between a list and an array, despite what some people
have told you (I won't name na
$#array]. The former works on both lists and arrays, but the latter
> does not."
You can't use $#array on a list, since it doesn't have a name.
> Thank you
> REgards
> babylakshmi
> >From: Aaron Craig <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
>
ou
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??
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. bu
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
i
12 matches
Mail list logo