Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Writing to csv file

by Marshall (Canon)
on Mar 05, 2011 at 02:09 UTC ( [id://891533]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Writing to csv file
in thread Writing to csv file

I don't see any real disagreement here. Some of the databases I work with use "|" instead of "," and disallow "|" as a valid data character - so this "|" within "|" issue does not come up.

When I generate a CSV file on my own, sometimes I use the "|" instead of "," when I know that "|" is not going to be in the data. I'm just saying that option is possible. Although the format is called "Comma Separated Value", the character can be anything you want, which is what you are saying. Some folks take CSV literally and don't realize that some other character can be used and that standard programs can parse files like that. To parse the general case of a CSV file, I would use one of the Perl modules as this is a very deceptively easy looking, but very hard to implement specification.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-19 15:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found