There's more than one way to do things | |
PerlMonks |
Re: how do I copy an array of objects?by thinker (Parson) |
on Nov 12, 2001 at 16:13 UTC ( [id://124810]=note: print w/replies, xml ) | Need Help?? |
Hi AM, If I get what you are doing correctly, you want to change this to where you dereference $OBJS then return a reference to the dereferenced array, therefore returning a deep copy. Here is an example of what I mean. which, when run, would produce cheers thinker Edit to add return values. thinker
In Section
Seekers of Perl Wisdom
|
|