hash of hashes

I

Imre

Hello Community,

can someone tell me how to traverse a hash of hashes to e.g. print out all elements?

Thanks
Imre
 
A

Anno Siegel

Imre said:
Hello Community,

can someone tell me how to traverse a hash of hashes to e.g. print out
all elements?

use Data::Dumper;
print Dumper \ %hoh;

Anno
 
T

Tore Aursand

can someone tell me how to traverse a hash of hashes to e.g. print out
all elements?

What have you tried so far? Where did you encounter problems? What
didn't work as expected?

Anyway: If you just want to visualize the hoh you got, you could use the
excellent Data::Dumper module;

use Data::Dumper;
print Dumper( \%hoh );
 
D

David K. Wall

Imre said:
Hello Community,

can someone tell me how to traverse a hash of hashes to e.g. print out
all elements?

Besides the useful Data::Dumper already recomended, there are examples in
'perldoc perldsc', the data structures "cookbook".
 

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

Members online

Forum statistics

Threads
474,266
Messages
2,571,083
Members
48,773
Latest member
Kaybee

Latest Threads

Top