[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Perl question on Arrays
- Subject: [ale] Perl question on Arrays
- From: eric at afaik.us (Eric Anderson)
- Date: Fri Jun 11 15:34:27 2004
- In-reply-to: <1086979923.15781.75.camel@reddwarf>
- References: <1086979923.15781.75.camel@reddwarf>
Josh Freeman wrote:
> I have two arrays that are both two dimensional. I assign
> @foo=[some][multidimensional][array];
>
> $bar[x][y]= @foo;
>
> Try as I might, I can't find a way go get @foo out of the the @bar
> array. Is there an easy way to do this in Perl, or am i going up the
> wrong creek?
I'm a little rusty on my Perl but don't you have to turn that @foo array
into a reference? An array can only store a scalar right? So...
$bar[x][y] = \@foo;
Eric