Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Writing CSV files

by tachyon (Chancellor)
on Oct 29, 2004 at 12:03 UTC ( [id://403701]=note: print w/replies, xml ) Need Help??


in reply to Re: Writing CSV files
in thread Writing CSV files

The default behavior for Text::CSV_XS works as you want things to.

Actually what you have shown and what Text::CSV_XS does has no relationship whatsoever to what the OP wanted.

Replies are listed 'Best First'.
Re^3: Writing CSV files
by steves (Curate) on Oct 29, 2004 at 13:38 UTC

    You are correct tachyon. It took me three cups of coffee to see that. My apologies. The issue here is rather custom since none of the CSV packages I've used will tell you if something was quoted coming in -- they hide that. It seems like to do this right you need to know what was quoted coming in and mirror that on the way out. If the rules are based on content (e.g., something that can be regexp matched) then maybe you don't need to know how it was originally.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-24 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found