while (@files) { ... #### push @data, [ splice @files, 0, $num_cols ] while @files;