Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2016-10-22 03:52 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (292 votes). Check out past polls.