Data::Dumper has been able to do this for some time. Check out $Data::Dumper::Deparse in the Data::Dumper POD.
A search of CPAN shows two versions, 2.101 (which I have) and 2.12 (bundled with Perl 5.8.0). As far as I can tell, $Data::Dumper::Deparse isn't supported until version 2.12.

Why should I use Data::Dumper::Lite instead of Data::Dumper or Storable?
That is a very good question and my knee jerk response is "Why not?" :-)

I am trying to write a (mostly*) pure perl version of Data::Dumper that has a smaller code base (read: easier to maintain) and easier to use since there are no options what so ever. D::D::L started out as a way for me to learn more but it has grown in functionality while the code base has shrunk.

* Mostly. I have to use B::Deparse to get at the code references. Perhaps I could make use of autouse or autoload to reduce the overhead of using B::Deparse when it is not used.


In reply to Re: Re: RFC: Data::Dumper::Lite by Mr. Muskrat
in thread RFC: Data::Dumper::Lite by Mr. Muskrat

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.