No such thing as a small change | |
PerlMonks |
Re: deep copy of nested data structureby davorg (Chancellor) |
on Nov 22, 2000 at 14:12 UTC ( [id://42895]=note: print w/replies, xml ) | Need Help?? |
The thaw function in FreezeThaw returns an array which you are assigning to a scalar. The scalar ($copy) therefore ends up getting the number of elements in the array (in this case 1). Try replacing your code with this:
to force an array assignment. --<http://www.dave.org.uk>
"Perl makes the fun jobs fun
In Section
Seekers of Perl Wisdom
|
|