Newbie Question

L

Laurence Breeze

I have a reference to a 2 dimensional array and I'd like to print out
the contents of the array. However, the number of elements will vary
and I can't see a way of doing this.

Any help or references would be appreciated.

Laurence
 
J

Jürgen Exner

Laurence said:
I have a reference to a 2 dimensional array and I'd like to print out
the contents of the array. However, the number of elements will vary
and I can't see a way of doing this.

Any help or references would be appreciated.

Do you have problems writing the nested loop or do you have problems
dereferencing the AOA (array of arrays)?

jue
 
P

Peter Hickman

Laurence said:
I have a reference to a 2 dimensional array and I'd like to print out
the contents of the array. However, the number of elements will vary
and I can't see a way of doing this.

Any help or references would be appreciated.

Laurence

If this is just for debugging then look at Data::Dumper.

use Data::Dumper;
print Dumper( $var );

all yours.
 
T

Tad McClellan

Laurence Breeze said:
Subject: Newbie Question


Please put the subject of your article in the Subject of your article.

I have a reference to a 2 dimensional array and I'd like to print out
the contents of the array.


use Data::Dumper;
print Dumper @array;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Register Question 0
Help for a newbie 13
C exercise 1
Help with an algorythm 5
Trouble creating multi dimensional array. 0 to 26 in 3 dimensions. 1
Search Results with Pagination 1
Tasks 1
newbie ``print`` question 25

Members online

Forum statistics

Threads
474,269
Messages
2,571,097
Members
48,773
Latest member
Kaybee

Latest Threads

Top