@newlist= @{$self->{oldlist}}; # Direct copy #Alternative ... push @newlist, @{$self->{oldlist}}; # Stuff it in
In reply to Re: Best way to copy an array?
by NetWallah
in thread Best way to copy an array?
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |