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.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Timing (and a little luck) are everything!