samual has asked for the wisdom of the Perl Monks concerning the following question:

I have to parse the text file and create a csv file. But main problem i am currently facing whenever i am creating the csv file. IT delimit the content too and move the content to next column. which has "," by default how can i get rid of this problem. Please help For example "A,B,C","options" it will create four column A B C options but i want two column A,B,C options
  • Comment on How to change the delimiter of CSV file

Replies are listed 'Best First'.
Re: How to change the delimiter of CSV file
by roboticus (Chancellor) on May 21, 2013 at 18:34 UTC

    samual:

    If you use Text::CSV, then it'll digest the file properly.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

Re: How to change the delimiter of CSV file
by LanX (Saint) on May 21, 2013 at 18:40 UTC
    you don't show us any code , we can only guess!

    Somewhere in your source you specified "\t" as delimiter, change it to ",".

    And please format your postings:

    Use: <p> text here (a paragraph) </p> and: <code> code here </code> to format your post!

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Re: How to change the delimiter of CSV file
by hbm (Hermit) on May 21, 2013 at 19:50 UTC