Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Copying an array or hashby bageler (Hermit) |
on Dec 05, 2005 at 19:13 UTC ( [id://514208]=note: print w/replies, xml ) | Need Help?? |
Here's the deep copy sub that I use in some of my objects:
Here's the sub that calls it: of course, this works because I assume my object will only either have hashrefs, arrayrefs or scalars.
In Section
Seekers of Perl Wisdom
|
|