Robert_Reznicek
Apr 15, 2010Nimbostratus
Assigning array to another array
Hello, is it somehow possible to fill one array (temporary) and then assign this whole array to another array? I would need to do something like this:
set tempArr(x1) "valueA"
set tempArr(x2) "valueB"
.
.
unset ::arr
set ::arr tempArr
unset tempArr
I need this, because there are thousands of entries in the array and filling the target array directly would take too much time.
Or is there any other possibility how to solve this? Thank you