RE: copying complex data structures

2003-12-12 Thread West, William M
>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

RE: copying complex data structures

2003-12-11 Thread NYIMI Jose (BMB)
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

Re: copying complex data structures

2003-12-11 Thread James Edward Gray II
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){

copying complex data structures

2003-12-11 Thread West, William M
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