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

Re^13: Processing CSV File

by Tux (Abbot)
on Oct 05, 2012 at 09:53 UTC ( #997424=note: print w/replies, xml ) Need Help??


in reply to Re^12: Processing CSV File
in thread Processing CSV File

  • When using Text::CSV_XS or Text::CSV do not pass eol on parser objects when eol is withing default realms. That is all handled automatically.
  • Then "<:crnl" will not be required at all.
  • If needing CSV parsing and CSV writing, make twoCSV objects where only the writing object defines eol
  • Use auto_diag!
# No eol and auto_diag > 1 will cause die's on error (with diagnostics +) my $csv = Text::CSV_XS->new ({ binary => 1, auto_diag => 2 });

Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^14: Processing CSV File
by Kenosis (Priest) on Oct 05, 2012 at 16:38 UTC

    Excellent, Tux, thank you. Appreciate you looking at this code, and will make the auto_diag change.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997424]
help
Chatterbox?
[Discipulus]: not even in Canada is easy to find a decent job
Discipulus was a question
[GotToBTru]: current job found me
Discipulus is so lucky to have a decent job, with old, favorable contract, done before the ultralibersm arrived in Eataly
[Lady_Aleena]: Has anyone here ever use pcregrep? I can't seem to get the --include regex right. --include=*.p[lm] works in grep but not pcregrep.
[erix]: to lift your spirits, here is some more happy Randy news...
[Lady_Aleena]: The reason I would like to use pcregrep is because it can do multiline searches supposedly.
[perldigious]: What are your criteria for looking Tanktalus? What things must a job have for you to consider it? And where are you in your career? Start, middle, or end?
[erix]: are there any regex-engines that do not do multiline?
[Lady_Aleena]: erix, grep doesn't.

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2017-05-23 19:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?