This will copy the elements but not alias them: i.e., it will make 2 separate arrays that happen to start out with the same elements.@newlist = @{$self->{oldlist}};
In reply to Re: Best way to copy an array?
by jweed
in thread Best way to copy an array?
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |