It may work, but it also copies the @allrows array again and again for each loop iteration. This is probably a Bad Thing (tm). I would suggest using push to add new items to the end of an existing array. I would also suggest checking out Limbic~Region's reply. His code actually creates an array of arrays, which may preserve the original structure of the data more accurately.