Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: CSV file with double quotes

by MidLifeXis (Monsignor)
on Sep 14, 2011 at 12:54 UTC ( [id://925899]=note: print w/replies, xml ) Need Help??


in reply to CSV file with double quotes

Use DBD::CSV, Text::CSV, or one of their companions, and create a filter - on read, use " as the delimiter; on write, use ~z~ as the delmiter.

Update (ENOCOFFEE): Read OP as wanting to replace the quotes, and still messed up my response.

--MidLifeXis

Replies are listed 'Best First'.
Re^2: CSV file with double quotes
by planetscape (Chancellor) on Sep 15, 2011 at 23:10 UTC
    s/ENOCOFFEE/ENEVERENOUGHCOFFEE/; # ;-)

    HTH,

    planetscape

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-07-25 12:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.