Parse fixed-width files

后端 未结 3 1061
南方客
南方客 2021-01-12 00:09

I have a lot of text files with fixed-width fields:

            
Dave    Thomas    123 Main
Dan     Anderson  456 Center
Wilma   R         


        
3条回答
  •  时光说笑
    2021-01-12 00:55

    CPAN to the rescue!

    DataExtract::FixedWidth not only parses fixed-width files, but (based on POD) appears to be smart enough to figure out column widths from header line by itself!

提交回复
热议问题