in reply to Best way to copy an array?
If there is any chance that the elements of your array are themselves compound (ie. array or hashes), then you may like to look at Clone. It's much quicker than any pure perl method, and it doesn't get confused by deeply nested structures.
|
|---|