Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Best X-delimited format?

by sauoq (Abbot)
on Sep 18, 2002 at 16:50 UTC ( [id://198910]=note: print w/replies, xml ) Need Help??


in reply to Best X-delimited format?

I argued any character would be as "optimal" as any other character (although I prefer \t).

I tend to agree with this in theory but in real life, commas, tabs, and pipes are probably used most frequently.

You can get more efficiency out of the case where you are positive that your delimiter won't show up in your data. Otherwise, you really need at least two characters: the delimiter and a quoting (or escaping) character. The less either of those shows up in your data, the less processing you will have to do and the smaller your input will be. So, it is better to use a less frequently used character as the delimiter.

I disagree with you ex-supervisor's assertion that tab is "the standard." There simply is no standard.

-sauoq
"My two cents aren't worth a dime.";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-24 04:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found