--- 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
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
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
--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
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
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];
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