Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^13: Processing CSV File

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


Comment on Re^13: Processing CSV File
Select or Download Code
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2014-09-16 04:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (156 votes), past polls