Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^5: Text to CSV with user input comma

by Tux (Abbot)
on Jun 28, 2013 at 08:14 UTC ( #1041176=note: print w/replies, xml ) Need Help??

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, "<", "" 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

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1041176]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2018-01-22 09:35 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (233 votes). Check out past polls.