Jenda Krynicky wrote: > From: Eric Walker <[EMAIL PROTECTED]> > > David Olbersen wrote: > > > > From: Eric Walker [mailto:[EMAIL PROTECTED] > > > > > > > > I have a HASH with a mixture of single, double and triple layers. > > > > exampl hash of hash of array's etc.... I try to dump and see > > > > values of the entire db but I get pointers and memory addresses. > > > > Below is my code Please help. > > > > > > > > foreach my $item (keys %hData){ > > > > print ("$item: $hData{$item}\n"); > > > > } > > > Eric, > > > > > > Use Data::Dumper, it'll do this very well if it's just for debugging > > > purposes. > > > > > > Check out the documentation on cpan.org: > > > > > > http://search.cpan.org/author/JHI/perl-5.8.0/ext/Data/Dumper/Dumper. > > > pm > > > > > > or `man Data::Dumper` if you're on a UNIX machine. > > > > I don't know if I am reading the data dumper help code right but it > > seems you have to provide a list of the hash keys to get the values. > > I need a way to just print out all keys and values no matter how many > > levels of hierachy there may be in the hash. > > > > Thanks > > Eric > > No you are not reading it correctly. > Just try and see. > > print Dumper(\%hData); > > Jenda > ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== > When it comes to wine, women and song, wizards are allowed > to get drunk and croon as much as they like. > -- Terry Pratchett in Sourcery > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
Thanks. I am getting output now. lets just hope I can pick it up the right way and print to file in formatted output. Thanks E
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]