in reply to Re: txt to csv
in thread txt to csv

Hey thank you for helping out

yes my file has spaces and special characters in it , if you could please point out the modification in code I will be grateful

Replies are listed 'Best First'.
Re^3: txt to csv
by davido (Cardinal) on Jun 24, 2013 at 05:34 UTC

    Which part are you having trouble with: Adding parameters to the constructor call, or understanding the portion of the POD that explains what parameters to add? Who wrote the code you're currently using?

    The line you need to modify is line 7. You'll be adding parameters to your call to the constructor (the new() method).


    Dave

      I have written the line 7 as

       my $csv = Text::CSV->new(({ binary => 1, eol => $/ }));

      still it puts " before and after every word

        So you haven't read the POD yet, or ventured to try any of the parameters that deal with quoting. Try that first.

        And how did serene_monk suddenly become torres09. You're posting SoPW questions and follow-ups under two names? Odd.


        Dave