On Thu, Nov 13, 2003 at 10:06:19AM -0800, Ravi Malghan wrote: > Hi: whatz the best way to copy an multidimensional > array onto another. I have never used something like > clone, just want to know whatz the easiest route.
Storable::dclone() is probably the easiest: use Storable qw(dclone); my @x = ([0,1,2], [3,4,5]); # "multidimensional" array my @y = @x; # shallow copy my @z = @{ dclone([EMAIL PROTECTED]) }; # deep copy require Data::Dumper; print Data::Dumper->Dump( [\(@x, @y, @z)], [qw(*x *y *z)] ); -- Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]