woops
use parens not braces:
@array2 = ( bah, $ref_array, blah, blah );

> -----Original Message-----
> From: Kipp, James [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 9:58 AM
> To: Beginners (E-mail)
> Subject: RE: arrays
> 
> 
> > @array2 = { bah, @array1, blah, blah }
> unless you make an reference to the array like John said, the 
> @array1 will
> be "flattened"
> so to keep the array do this:
> $ref_array = \@array1;
> @array2 = { bah, $ref_array, blah, blah };
> then to use it you need to dereference it.
> 
> > -----Original Message-----
> > From: John Edwards [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 18, 2001 9:44 AM
> > To: 'Yacketta, Ronald'; Beginners (E-mail)
> > Subject: RE: arrays
> > 
> > 
> > You should be able to store a reference to an array, or maybe 
> > it will just
> > store the data from the array, not the name itself. Not 
> sure on that.
> > 
> > Can you give an example of what you're trying to achieve? 
> > Maybe you'd find a
> > hash more suitable.
> > 
> > John
> > 
> > -----Original Message-----
> > From: Yacketta, Ronald [mailto:[EMAIL PROTECTED]]
> > Sent: 18 June 2001 14:39
> > To: Beginners (E-mail)
> > Subject: arrays
> > 
> > 
> > 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?
> > 
> > 
> > --------------------------Confidentiality--------------------------.
> > This E-mail is confidential.  It should not be read, copied, 
> > disclosed or
> > used by any person other than the intended recipient.  
> > Unauthorised use,
> > disclosure or copying by whatever medium is strictly 
> > prohibited and may be
> > unlawful.  If you have received this E-mail in error please 
> > contact the
> > sender immediately and delete the E-mail from your system.
> > 
> > 
> > 
> 
> 

Reply via email to