in reply to Copy line into new column
Other than that, maybe you should start with one of the many problems, show us some input you got, some output you get and the results you would want. Preferrably reduce your program to the smallest set of lines that exhibits the problem.
As for your general approach, I find unpack to be a good tool when working with fixed-width data, and also regular expressions, depending on whether the fixed length data is delimited or not.
As for your variable names, $col00 is a bad name, and $col01 is even worse. Most likely you want to use an array @col, or potentially, a hash %col in which you'd store $col{ vol } for example, thus switching from positions to names in the process.
|
|---|