in reply to pop up Save as box before downloading

G'day pearlgirl,

You're drip-feeding us information which makes it difficult to provide a concrete solution.

It sounds like the module that you're looking for is Text::CSV.

Collect your data into an array: nothing saved to a disk file at this point.

Generate your text file from that array when the user clicks the download button; e.g. $csv->say().

Note that if you also have Text::CSV_XS installed, processing will be a lot faster.

— Ken