dooberwah has asked for the wisdom of the Perl Monks concerning the following question:
Is there any easy way for copying an array of hashes? My understanding is that @array2 = @array1 (where @array1 is an array of hashes) won't make a new copy because it just copies the refrences into @array2. I'd like to know if there's an easier way of making a copy of @array1 than looping through it and copying each element.
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Copying an Array of Hashes
by tachyon (Chancellor) on Jul 04, 2001 at 17:30 UTC | |
Re: Copying an Array of Hashes
by Masem (Monsignor) on Jul 04, 2001 at 01:42 UTC |
Back to
Seekers of Perl Wisdom