Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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 avoiding work at the Monastery: (8)
As of 2016-02-12 05:45 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (388 votes), past polls