Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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
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?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2015-10-10 00:35 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (254 votes), past polls