in reply to How to combine multiple files together

if only one file has the field list, then you could just cat them all together. You don't even need perl.

If they all do have a field list there are a number of modules you can use that deal with CSV files. I'd recommend Text::xSV

  • Comment on Re: How to combine multiple files together

Replies are listed 'Best First'.
Re^2: How to combine multiple files together
by xspikx (Acolyte) on Oct 17, 2005 at 15:56 UTC
    Yes, each file has the first column of the first file, however the other files can have multiple instances of it. eg: 1st file: perl book,writer:xxxx,publisher:xxxx 2nd file: perl book,first edition,$29.99 2nd file: perl book,second edition,$25.99 3rd file: perl book,third edition,$x big file: perl book,writer:xxxx,publisher:xxxx||first edition,$29.99||second edition,$25.99||third edition,$x