Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Printing to file from Text::CSV_XS

by edimusrex (Monk)
on Jan 28, 2016 at 17:03 UTC ( #1153898=note: print w/replies, xml ) Need Help??


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 (Archbishop) 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 (Chancellor) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1153898]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (1)
As of 2021-09-28 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?