>use Storable;
>$arrayref_one = dclone( $arrayref_two );
>
aha
thanks :)
it's those details that make a program so much easier to make..
i noticed another poster asking about reference notations- i think that this
and Object Oriented programming have given me the most headaches on a
co
Try clone method of Storable module from CPAN.
There is also Clone module out there.
HTH,
José.
-Original Message-
From: West, William M [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 4:37 PM
To: [EMAIL PROTECTED]
Subject: copying complex data structures
the following
On Dec 11, 2003, at 9:37 AM, West, William M wrote:
the following will not work:
$arrayref_one = $arrayreftwo; #it's just making a new name for the same
#reference.
the following works fine:
foreach my $a (0..$what){
foreach my $b (0..$why){
the following will not work:
$arrayref_one = $arrayreftwo; #it's just making a new name for the same
#reference.
the following works fine:
foreach my $a (0..$what){
foreach my $b (0..$why){
$arrayref_one->[$a]->[$b] = $arrayref_t