Set $Data::Dumper::Deepcopy to 1, and see if the output is what you expected. If so, then the problem is with the way Dumper formats output not being what you expect. More likely, the web of references you are creating are more complex than you think.
When Dumper sees a reference to something it has already printed, then it represents that data as an internal reference... in the source data they are bound together, so Dumper prints them bound together.
If you don't want them bound (ie. multiple references to the same data) then you will have to copy the data, rather than the references. If you just don't want them printed bound, then the Dumper setting is sufficient.
In reply to Re: Problem in Accumulating Deep Array References
by fishbot_v2
in thread Problem in Accumulating Deep Array References
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |