0

being 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..

4 Answers 4

4

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

Sign up to request clarification or add additional context in comments.

Comments

3

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

Comments

2

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

Comments

1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.