in reply to Spreadsheet::ParseExcel format help

my @commaless_array = split /,/ record ...and then write it out to the text file of your choice with whatever formatting you want.
See perldoc -f split from your CLI.
If I've misconstrued your question or the logic needed to answer it, I offer my apologies to all those electrons which were inconvenienced by the creation of this post.