I am trying to output the values in an array to a file. The output needs to be formated such that each array value is left jusified in a field 8 character spaces long. Also, no more than 6 fields on a line. For example:
@array= 1..14;
Needs to be output to the file like so:
1 2 3 4 5 6
7 8 9 10 11 12
13 14
Of course, the amount of array values will vary.
Can't this be done with the printf function?