in reply to Database Output Comma Delimitted w/quotes

Use qq to allow interpolation of variables and to print literal quotes. Is this what you had in mind?
use strict; use warnings; my %dataRow = (field1=>1, field2=>2); print qq{$dataRow{field1}","$dataRow{field2}\n}; __END__ 1","2

Replies are listed 'Best First'.
Re^2: Database Output Comma Delimitted w/quotes
by Anonymous Monk on Aug 26, 2008 at 23:57 UTC
    I just need the output in a simple comma delimmted file. See below. "COLOMON1","COLOMON2" "COLOMON1","COLOMON2" "COLOMON1","COLOMON2" "COLOMON1","COLOMON2" "COLOMON1","COLOMON2"