http://www.perlmonks.org?node_id=1041176


in reply to Re^4: Text to CSV with user input comma
in thread Text to CSV with user input comma

You are using the module only for the generation of CSV, not for the parsing. Start by writing your parsing code safer:

use Text::CSV; my $csv = Text::CSV->new ({ binary => 1, auto_diag => 1 }); open my $in_fh, "<", "temporary.tl" or die "please create your temporary file: $!"; my @rows = (); while (my $row = $csv->getline ($in_fh)) { push @rows, $row; }

I am sure I posted the same answer in this thread


Enjoy, Have FUN! H.Merijn
code

Replies are listed 'Best First'.
Re^6: Text to CSV with user input comma
by shushant (Novice) on Jun 28, 2013 at 08:30 UTC
    Hey thanks for helping

    but i made the changes , but still the problem continues