Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

(Solution) Re: Data::Dumper Limitations

by jplindstrom (Monsignor)
on Oct 31, 2002 at 23:47 UTC ( #209592=note: print w/replies, xml ) Need Help??


in reply to Data::Dumper Limitations

I have run into this problem. When the data structure went above a certain size, the memory consumption went through the roof.

The solution/workaround is this:

local $Data::Dumper::Useqq = 1;

This will (among other things, perldoc it) make it use the pure Perl implementation which doesn't seem to have this problem.

Ok, it's slower for small data structures (so who cares?), but it works for large ones.


/J

Replies are listed 'Best First'.
Re: (Solution) Re: Data::Dumper Limitations
by demerphq (Chancellor) on Nov 01, 2002 at 13:14 UTC
    My apologies. I wrote my reply without reading the others.

    Funny how we said almost exaclty the same thing. Only difference being that I dont recommend localizing the value. I would rather it works all the time than works fast most of the time. :-)

    --- demerphq
    my friends call me, usually because I'm late....

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2021-10-17 12:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (71 votes). Check out past polls.

    Notices?