PERL PERL5 PORTERS 41 RE REFERENCES TO ANONYMOUS ARRAYS
Date: Mon, 21 Feb 2005 11:44:29 +0000

Subject: Re: References to anonymous arrays
From: nick@no-spam (Nicholas Clark)

On Sun, Feb 20, 2005 at 08:13:30PM +0000, Sisyphus wrote:

> Nick Ing-Simmons wrote:
> >Sisyphus <kalinabears@no-spam> writes:
> >
> >>You mean that someone would actually write \(0..127) and expect that to > >>be an array of 128 scalar references ??
> >
> >
> >Yes. After all the other case is trivialy done with [0..127]
> >so you might as well get something different.
> >
> > And you can just as trivially create a reference with [@no-spam .... so > let's make \@no-spam be an array of references to the elements of @no-spam
Which is not the same thing as a reference to that array.
So is not analogous to the \(0..127) and [0..127] comparison.

Nicholas Clark