So it appears. :-)

I am well aware of your bug report (its a test case for my BFDump) but for various reasons I had this one down as a seperate issue. :-)

Incidentally to answer your (implicit) question from the bug report:

I'm not sure how to fix this... you really need to dump $dogs before $kennel here so you can take a reference to the array element in place. Or it has to be patched up afterward. I'm turning Purity on, which is usually pretty good about constructing the patchups. But it wasn't sufficient here.

Theres a simple way to solve this problem, but nobody will like it: Dumper must make two passes over the data structure. The first to identify every variable in the data structure, the second to actually dump the structure using that data.

I leave it as an excercise for the reader to see why it is impossible to dump any arbiitrary perl data structure with only one pass (as Dumper attempts to do).

Incidentally BFDump does handle your perl5-porter bug, but doesnt handle this one (yet).

Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.


In reply to Re: •Re: Puzzle: Whats wrong with Dumper by demerphq
in thread Puzzle: Whats wrong with Dumper by demerphq

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.