Re: reference to a two dimensional array

2001-07-30 Thread Paul
--- Robb Wagoner <[EMAIL PROTECTED]> wrote: > I have a two dimensional array where each element consists of a > reference to an anonymous array. > > push(@array,[$var1,$var2,$var3]); That's pretty much the way all multidimensional arrays (and hashes) work in Perl. > When I pass a referen

RE: reference to a two dimensional array

2001-07-30 Thread Robb Wagoner
I overwrote it with what 'worked'. :-) I will try to recreate. -Original Message- From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 11:15 AM To: Robb Wagoner Cc: [EMAIL PROTECTED] Subject: RE: reference to a two dimensional array On Mon, 30 Jul

RE: reference to a two dimensional array

2001-07-30 Thread Brett W. McCoy
On Mon, 30 Jul 2001, Robb Wagoner wrote: > That's what I thought but I couldn't seem to get it to work. I am going to > go try it again. I am betting I had a typo somewhere when I what seemed to > be the proper way. > I DO read the warnings and errors and look at what line number the parser > puk

RE: reference to a two dimensional array

2001-07-30 Thread Robb Wagoner
--Original Message- From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 10:59 AM To: Robb Wagoner Cc: [EMAIL PROTECTED] Subject: Re: reference to a two dimensional array On Mon, 30 Jul 2001, Robb Wagoner wrote: > I have a two dimensional array where each element

Re: reference to a two dimensional array

2001-07-30 Thread Brett W. McCoy
On Mon, 30 Jul 2001, Robb Wagoner wrote: > I have a two dimensional array where each element consists of a reference to > an anonymous array. > > push(@array,[$var1,$var2,$var3]); > > When I pass a reference to the array in a subroutine: > > some_sub(\@array); > > What is the proper w

Re: reference to a two dimensional array

2001-07-30 Thread Jeff 'japhy/Marillion' Pinyan
On Jul 30, Robb Wagoner said: >When I pass a reference to the array in a subroutine: > > some_sub(\@array); > >What is the proper way to dereference the array with in the subroutine? I do: some_sub([ [1,2,3], [4,5,6] ]); sub some_sub { my $aref = shift; print $aref->[0][0];

reference to a two dimensional array

2001-07-30 Thread Robb Wagoner
I have a two dimensional array where each element consists of a reference to an anonymous array. push(@array,[$var1,$var2,$var3]); When I pass a reference to the array in a subroutine: some_sub(\@array); What is the proper way to dereference the array with in the subroutine? A