in reply to Nested Hash/Arrays Access

Now I have checked this Data structure, and everything seems to be saved properly and nothing overwritten etc.

You don't say how you did the checking but, if you haven't found it already, Data::Dumper is a very useful tool when you need to inspect your data structures. This

use strict; use warnings; use Data::Dumper; my %hash = ( this => [ 1, 2, 4, 8 ], that => { the => q{other} }, ); print Data::Dumper->Dumpxs( [ \ %hash ], [ qw{ *hash } ] );

produces this

%hash = ( 'that' => { 'the' => 'other' }, 'this' => [ 1, 2, 4, 8 ] );

I hope this is helpful.

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^2: Nested Hash/Arrays Access
by Wookimonsta (Initiate) on Jul 21, 2009 at 10:16 UTC
    i was until now using a program called DDD that someone recommended to debug the program and i used it to display/print the data structures. i will look into data dumper however, as it seems very helpful thanks for the info