Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: Text to CSV with user input comma

by Tux (Monsignor)
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, "<", "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


Comment on Re^5: Text to CSV with user input comma
Download Code
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1041176]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-10-22 08:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (114 votes), past polls