in reply to Converting a txt file to excel file

MonkPaul, judging by the other replies in this thread, I think you morphed a previous post of yours (asking about HTML parsers) into another. :-)

The short answer to the new question is Spreadsheet::WriteExcel.

the lowliest monk