in reply to
Copying two-dimensional arrays
The dclone method of
Storable
can be used for deep copies of array references:
use Storable qw(dclone); my $y = dclone(\@x);
[download]
Another option is
FreezeThaw
.
Comment on
Re: Copying two-dimensional arrays
Download
Code
In Section
Seekers of Perl Wisdom