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);
Another option is FreezeThaw.