in reply to Is there a way to reduce Data::Dumper's output size?

May I cordially suggest that you, instead, use one of several alternatives which are expressly designed to store data structures:

You will find, in CPAN, multiple robust implementations, ready to go.

Replies are listed 'Best First'.
Re^2: Is there a way to reduce Data::Dumper's output size?
by tkguifan (Scribe) on Feb 11, 2015 at 06:14 UTC
    I also tried the JSON module. Its output is almost the same size that of freeze ( only marginally bigger ). Its advantage that it is pure text, still somewhat human readable. I will see how fast it is when my structure gets really big.
      Give a try to Sereal.
      L*
      There are no rules, there are no thumbs..
      Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
        Seconded. Apart from being a core module, there's no reason to pick Storable over Sereal.
        Interesting because it also incorporates compression.
Re^2: Is there a way to reduce Data::Dumper's output size?
by tkguifan (Scribe) on Feb 11, 2015 at 05:18 UTC
    Currently I'm trying freeze/thaw. Why did you abandon using it? Is it unsafe?