Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Data::Dumper Limitations

by seattlejohn (Deacon)
on Oct 31, 2002 at 08:38 UTC ( [id://209365]=note: print w/replies, xml ) Need Help??


in reply to Data::Dumper Limitations

At the very least, I've seen Data::Dumper get painfully slow with complex data structures. It might be easier and faster to simply roll your own. Something like this would probably get you 90% of the way there:
foreach my $key1 (keys %hash) { print "$key1:\n"; foreach my $key2 (keys %{$hash{$key1}}) { print " $key2:\n"; foreach my $key3 (keys %{$hash{$key1}{$key2}}) { print " $key3:\n " , join (",",@{$hash{$key1}{$key2}{$key3}}), "\n"; } } }

        $perlmonks{seattlejohn} = 'John Clyman';

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://209365]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found