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.


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....