开发者

multi dimensional array creation

开发者 https://www.devze.com 2023-03-02 19:58 出处:网络
being开发者_如何学JAVA a beginner of perl i m not sure of the scope of perl. can somebody gimme a basic program for multi dimensional array creation n the full idea behind the code? thanks in advance.

being开发者_如何学JAVA a beginner of perl i m not sure of the scope of perl. can somebody gimme a basic program for multi dimensional array creation n the full idea behind the code? thanks in advance..


See chapter "Nested Data Structures" in the Modern Perl book, and perllol and perldsc in the documentation.


perldoc perllol has detailed explanation regarding nested arrays. See also perldoc perlreftut.


Arrays in Perl can only hold scalars. However, those scalars can be array references. Check out these two links (in this order), which helped refresh my own understanding. The perldoc link contains the canonical example code that will help you get started. Good luck!

http://www.perlmonks.org/?node_id=90647

http://perldoc.perl.org/perldsc.html


daxim has the right stuff for most cases. In the rare case of doing purely numerical manipulation see PDL . PDL allows Perl to behave a little more like Matlab.

Again, If this doesn't ring any bells, see daxim's answer.

0

精彩评论

暂无评论...
验证码 换一张
取 消