Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: good delimiter in data for Perl

by sathiya.sw (Monk)
on Jan 07, 2009 at 15:05 UTC ( [id://734647]=note: print w/replies, xml ) Need Help??


in reply to Re: good delimiter in data for Perl
in thread good delimiter in data for Perl

No, because my data itself can have those separators which the CSV will be using. so these separators may clash, and data parsed wrongly !!
Sathiyamoorthy

Replies are listed 'Best First'.
Re^3: good delimiter in data for Perl
by JavaFan (Canon) on Jan 07, 2009 at 15:12 UTC
    Do you really think CSV could be so popular if that wasn't a tackled problem?

    In CSV, there's a way to protect separators occuring inside data fields.

Re^3: good delimiter in data for Perl
by dorward (Curate) on Jan 07, 2009 at 15:12 UTC
    CVS has standard ways to handle special characters in data:
    1,2,3,4 is (1, 2, 3, 4) 1,"2,2,2",3,4 is (2, '2,2,2', 3, 4) 1,"2,""2""2",3 is (1, '2,"2",2', 3, 4)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-16 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found