Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1041176]
help
Chatterbox?
[Discipulus]: oh well we cant afford two monks fired in a day!
[LanX]: any news from tye ' s search?
[MidLifeXis]: Ugh - who else?
[Discipulus]: so the right term is 'gired'
[Discipulus]: look at ot by karl
Discipulus gired: adj the work position that stands between hired and fired..
LanX recommends inner immigration, work less hard and enjoy pay roll
[MidLifeXis]: ahh, yeah, didn't look through nodes yet today.
[erix]: haha
[MidLifeXis]: Ahh well, time to get back to it, so there isn't a reason to take that choice out of my hands :-)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (14)
As of 2017-03-23 12:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (286 votes). Check out past polls.