in reply to Re^2: Merging of arrays with space
in thread Merging of arrays with space

Is your writing of a CSV parser something you are doing for your own educational benefit and/or amusement? Unless you're specifically directed not to get CPAN involved, you should let the proven solution do its job. See Text::CSV.


Dave

Replies are listed 'Best First'.
Re^4: Merging of arrays with space
by MynameisAchint (Novice) on Jun 05, 2013 at 08:18 UTC
    Hey Actually I am very new to perl I picked it up 4 days back , so I don't have any idea about CPAN , I am writing a utility that converts csv file to text in a specific format and vice versa . So I am not comfortable with CPAN

      At the command prompt type: cpan install Text::CSV, then read Text::CSV. Presto, a CSV parser that works well, and that is well understood and supported by the Perl community. :)

      And congratulations; you've just installed your first CPAN module. There are some who will tell you that CPAN is the language, and Perl is the syntax that glues it together. That's probably overstating the cause, but I do think it's accurate to say that Perl wouldn't be modern Perl without CPAN.


      Dave