I'm using Data::Dumper to store a structure on disk ( which then I can read back and eval ). Its output is nicely tabulated. However it turns out that it is tabulated with spaces instead of tabs, so it outputs a ridiculously large namber of tabulating spaces which begin to matter if I have a large data structure. Is there a way to make Data::Dumper generate a minimalistic output ( which need not be human readable )?
'rnbqkbnr/pp1pp1pp/2p2p2/1N6/8/5N2/PPPPPP +PP/R1BQKB1R b KQkq -' => { + 'd8a5' => { + 'orig_eval' => 240, + 'visited' => 1, + 'fen_after' => 'rnb1kbnr/pp1pp +1pp/2p2p2/qN6/8/5N2/PPPPPPPP/R1BQKB1R w KQkq -', + 'eval' => 240 + }, + 'c6c5' => { + 'orig_eval' => 1276, + 'visited' => 1, + 'fen_after' => 'rnbqkbnr/pp1pp +1pp/5p2/1Np5/8/5N2/PPPPPPPP/R1BQKB1R w KQkq -', + 'eval' => 1276 + }, + 'g7g6' => { + 'orig_eval' => 1234, + 'visited' => 1, + 'fen_after' => 'rnbqkbnr/pp1pp +2p/2p2pp1/1N6/8/5N2/PPPPPPPP/R1BQKB1R w KQkq -', + 'eval' => 1234 + },

In reply to Is there a way to reduce Data::Dumper's output size? by tkguifan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.