?= <[EMAIL PROTECTED]>
MIME-Version: 1.0
Message-Id: <[EMAIL PROTECTED]>
Content-Transfer-Encoding: 8bit

On Monday 18 June 2001  2:38 pm, Yacketta, Ronald wrote:
> Folks,
>
> Is it possible to store an array name inside another array?
>
> IE:
> @array1 = bunch o' file names
>
> @array2 = { bah, @array1, blah, blah }
>
> actualy that would be a pointer from @array1 -> @array2 correct?

Yup, although in Perl they're called references. There is a difference but I 
can't remember what it is.  The syntax would be:

@array2 = { bah, \@array1, blah, blah }

Then to access array1 again, you could use @${array2[1]} or an element in 
array1 as ${$array2[1]}[x].

Gary

Reply via email to