in reply to GP problem with tree structure using hash
In addition to the bug that kvale pointed out, you need to make deep copies in the reproduction step. A shallow copy (like you're making) means that when you modify one copy you also modify the other.
|
---|
In Section
Seekers of Perl Wisdom