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.
In reply to Re: Best way to copy an array?
by BrowserUk
in thread Best way to copy an array?
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |