Subject: | References to blessed packages are being lost |
Hello,
I've been using XML::Dumper to serialise and deserialise perl blessed objects into/from XML. I'm very impressed with the usefulness of this tool and its ease of use.
However, I've found a very limiting bug with version 0.67: for repeated blessed objects referenced by another blessed object, the second, third, fourthe etc. reference does not get serialised correctly.
This is what happens in 0.65:
<item key="_messages">
<hashref blessed_package="JH::Job::File" memory_address="0x1044b9cc">
<item key="_local_filename">/usr1/harrison/server5050/data/tmp/jobfile.1064235741.15214819.2</item>
<item key="_read">1</item>
<item key="_write">1</item>
</hashref>
</item>
<item key="_messages">
<hashref blessed_package="JH::Job::File" memory_address="0x1044b9cc">
</hashref>
</item>
In 0.67, the memory address is missing and the deserialised object is undefined.
Keep up the good work,
Jim