F
Frank
Hi,
Is it possible to copy the contents of a scalar/hash/array-reference to
a scalar/hash/array variable?
I have this script:
use Data:umper;
my $save_ref;
my @save_arr;
my @array = ("one","two","three");
$save_ref = \@array;
@save_arr = $save_ref;
print Dumper(@save_arr);
@array = ();
print Dumper(@save_arr);
And the end I want @save_arr to be 'disconnected' from anything leading
back to the original @array.
Regards,
Frank
Is it possible to copy the contents of a scalar/hash/array-reference to
a scalar/hash/array variable?
I have this script:
use Data:umper;
my $save_ref;
my @save_arr;
my @array = ("one","two","three");
$save_ref = \@array;
@save_arr = $save_ref;
print Dumper(@save_arr);
@array = ();
print Dumper(@save_arr);
And the end I want @save_arr to be 'disconnected' from anything leading
back to the original @array.
Regards,
Frank