[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Fri Jun 11 16:26:23 2004 -->
- <!--x-from-r13: wbfu ng pngrn.bet (Xbfu Terrzna) -->
- <!--x-message-id: 1086985362.15781.81.camel@reddwarf -->
- <!--x-reference: 1086979923.15781.75.camel@reddwarf -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Perl question on Arrays -->
- <li><em>date</em>: Fri Jun 11 16:26:23 2004</li>
- <li><em>from</em>: josh at catea.org (Josh Freeman)</li>
- <li><em>in-reply-to</em>: <<a href="msg00252.html">[email protected]</a>></li>
- <li><em>references</em>: <1086979923.15781.75.camel@reddwarf> <<a href="msg00252.html">[email protected]</a>></li> That got it. Thanks.
- <li><em>subject</em>: [ale] Perl question on Arrays</li>
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
> <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
--
Josh Freeman
Technical Manager
Center for Assistive Technology and Environmental Access
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00248" href="msg00248.html">[ale] Perl question on Arrays</a></strong>
<ul><li><em>From:</em> josh at catea.org (Josh Freeman)</li></ul></li>
<li><strong><a name="00252" href="msg00252.html">[ale] Perl question on Arrays</a></strong>
<ul><li><em>From:</em> eric at afaik.us (Eric Anderson)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00254.html">[ale] Xandros Open Circulation</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00256.html">[ale] Xandros Open Circulation</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00252.html">[ale] Perl question on Arrays</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00270.html">[ale] Perl question on Arrays</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00255"><strong>Date</strong></a></li>
<li><a href="threads.html#00255"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>