in reply to How can I keep the values in the array?

I believe your context is only within the scope of the while loop. Try declaring  my @row1; before the while loop, then just using  while ( @row1 = ...

- - arden.