[ale] Perl question on Arrays
Josh Freeman
josh at catea.org
Fri Jun 11 16:26:23 EDT 2004
Eric,
That got it. Thanks.
Josh
On Fri, 2004-06-11 at 15:33, Eric Anderson wrote:
> 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
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
--
Josh Freeman
Technical Manager
Center for Assistive Technology and Environmental Access
More information about the Ale
mailing list