The above code look for a 'string' match Patchmesh and build a array from that info. and what I trying to do is to build a for loop by asignment of the array. ex. this is the info I like to build with a for loop @riGeo1 = @{$riPrimGroup[0]}; @riGeo2 = @{$riPrimGroup[1]}; @riGeo3 = @{$riPrimGroup[2]}; @riGeo4 = @{$riPrimGroup[3]}; @riGeo5 = @{$riPrimGroup[4]}; so I thought about this for ($i = 0; $i < $#riPrimGroup; $i += 1 ) { @riGeo$i = @{$riPrimGroup[$i]}; } but it doesn't work, maybe a join could be used to build the for loop and append it to the arrayname 'riGeo+newname' the idea is to read in a file 'geometry data' extrate information PatchMesh or another info and build a ArrayName of how many PatchMesh it is find this way I could print information about this info and build the 'geometry' group for export to another format. regards, Fredrik Gustafsson