in reply to Re: Printing to file from Text::CSV_XS
in thread Printing to file from Text::CSV_XS

That did work for the line issue yet it is still wrapping the entire line in quotes

  • Comment on Re^2: Printing to file from Text::CSV_XS

Replies are listed 'Best First'.
Re^3: Printing to file from Text::CSV_XS
by choroba (Cardinal) on Jan 28, 2016 at 17:08 UTC
    Your subroutine cleanthis joins all the fields into one. Return a list instead and let Text::CSV_XS handle the joining.

    ($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,

      ah, I knew it was probably something simple. Thank you

      Changing return join("\t",@formatted) to simply return (@formatted) did the trick

Re^3: Printing to file from Text::CSV_XS
by hippo (Archbishop) on Jan 28, 2016 at 17:09 UTC

    That's because your pre-processing is only passing a single field to the print method. If you don't want the quotes, don't use them. See quote_char.

    I do encourage you to read the documentation. It's very comprehensive.