in reply to Re^3: Need help with node names for creating header line
in thread Need help with node names for creating header line

Stupid me.... say join ',', map qq("$_"), @data;

  • Comment on Re^4: Need help with node names for creating header line

Replies are listed 'Best First'.
Re^5: Need help with node names for creating header line
by choroba (Cardinal) on Dec 30, 2015 at 22:43 UTC
    To output CSV, use Text::CSV. Your solution breaks if a field contains double quotes or newlines.
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,