in reply to Data Dumper not outputting valid perl?
Can you write a test case?
A simple script with a pre-initialized structure, to see if the problem can be reproduced.